[BusyBox-cvs] svn commit: trunk/busybox/console-tools
vapier at busybox.net
vapier at busybox.net
Sat Jul 30 09:29:11 UTC 2005
Author: vapier
Date: 2005-07-30 03:29:10 -0600 (Sat, 30 Jul 2005)
New Revision: 10982
Log:
cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)
Modified:
trunk/busybox/console-tools/dumpkmap.c
Changeset:
Modified: trunk/busybox/console-tools/dumpkmap.c
===================================================================
--- trunk/busybox/console-tools/dumpkmap.c 2005-07-30 09:24:49 UTC (rev 10981)
+++ trunk/busybox/console-tools/dumpkmap.c 2005-07-30 09:29:10 UTC (rev 10982)
@@ -77,10 +77,10 @@
ke.kb_index = j;
ke.kb_table = i;
if (ioctl(fd, KDGKBENT, &ke) < 0) {
- bb_error_msg("ioctl returned: %m, %s, %s, %xqq",
+ bb_perror_msg("ioctl failed with %s, %s, %p",
(char *)&ke.kb_index,
(char *)&ke.kb_table,
- (int)&ke.kb_value);
+ &ke.kb_value);
} else {
write(1, (void*)&ke.kb_value, 2);
}
More information about the busybox-cvs
mailing list