aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-30 09:29:10 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-30 09:29:10 +0000
commit198ea3c86a40fc6608eedf29b018421337163bff (patch)
tree17320a77e8176fe7bfb13a42129029621f13b7f4 /console-tools
parentf28c7ec7e5c776b2370315ffcd19cbf9f67adab0 (diff)
downloadbusybox-198ea3c86a40fc6608eedf29b018421337163bff.tar.gz
cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/dumpkmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 0897b3294..61768fe16 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -77,10 +77,10 @@ int dumpkmap_main(int argc, char **argv)
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);
}