aboutsummaryrefslogtreecommitdiff
path: root/console-tools/dumpkmap.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-14 01:51:25 +0000
committerMatt Kraai <kraai@debian.org>2000-07-14 01:51:25 +0000
commitd537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /console-tools/dumpkmap.c
parent4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff)
downloadbusybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz
busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.bz2
busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip
Use errorMsg rather than fprintf.
Diffstat (limited to 'console-tools/dumpkmap.c')
-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 a497a07d1..f18050529 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -58,7 +58,7 @@ int dumpkmap_main(int argc, char **argv)
58 58
59 fd = open("/dev/tty0", O_RDWR); 59 fd = open("/dev/tty0", O_RDWR);
60 if (fd < 0) { 60 if (fd < 0) {
61 fprintf(stderr, "Error opening /dev/tty0: %s\n", strerror(errno)); 61 errorMsg("Error opening /dev/tty0: %s\n", strerror(errno));
62 return 1; 62 return 1;
63 } 63 }
64 64
@@ -86,7 +86,7 @@ int dumpkmap_main(int argc, char **argv)
86 ke.kb_table = i; 86 ke.kb_table = i;
87 if (ioctl(fd, KDGKBENT, &ke) < 0) { 87 if (ioctl(fd, KDGKBENT, &ke) < 0) {
88 88
89 fprintf(stderr, "ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); 89 errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
90 } 90 }
91 else { 91 else {
92 write(1,&ke.kb_value,2); 92 write(1,&ke.kb_value,2);