Use strerror instead of errno values in user strings.

This commit is contained in:
Adam Jackson
2008-02-01 15:36:11 +11:00
parent b740b865e4
commit f3b3b37ec6
12 changed files with 36 additions and 36 deletions

View File

@@ -441,7 +441,7 @@ LinuxFini (void)
memset (&vts, '\0', sizeof (vts)); /* valgrind */
ioctl (fd, VT_GETSTATE, &vts);
if (ioctl (fd, VT_DISALLOCATE, vtno) < 0)
fprintf (stderr, "Can't deallocate console %d errno %d\n", vtno, errno);
fprintf (stderr, "Can't deallocate console %d %s\n", vtno, strerror(errno));
close (fd);
}
return;