aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-30 09:29:10 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-30 09:29:10 +0000
commit94f015115cc721d9b4352cd96338ea17b1f9fe92 (patch)
tree17320a77e8176fe7bfb13a42129029621f13b7f4
parent1979b122f0d787e6bf6b45aa9720b5ec5b4411d4 (diff)
downloadbusybox-w32-94f015115cc721d9b4352cd96338ea17b1f9fe92.tar.gz
busybox-w32-94f015115cc721d9b4352cd96338ea17b1f9fe92.tar.bz2
busybox-w32-94f015115cc721d9b4352cd96338ea17b1f9fe92.zip
cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)
git-svn-id: svn://busybox.net/trunk/busybox@10982 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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)
77 ke.kb_index = j; 77 ke.kb_index = j;
78 ke.kb_table = i; 78 ke.kb_table = i;
79 if (ioctl(fd, KDGKBENT, &ke) < 0) { 79 if (ioctl(fd, KDGKBENT, &ke) < 0) {
80 bb_error_msg("ioctl returned: %m, %s, %s, %xqq", 80 bb_perror_msg("ioctl failed with %s, %s, %p",
81 (char *)&ke.kb_index, 81 (char *)&ke.kb_index,
82 (char *)&ke.kb_table, 82 (char *)&ke.kb_table,
83 (int)&ke.kb_value); 83 &ke.kb_value);
84 } else { 84 } else {
85 write(1, (void*)&ke.kb_value, 2); 85 write(1, (void*)&ke.kb_value, 2);
86 } 86 }