diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 05:51:25 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 05:51:25 +0400 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /console-tools/loadkmap.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) |
Use errorMsg rather than fprintf.
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r-- | console-tools/loadkmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index c2e4c94ed..72247a6e4 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -59,25 +59,25 @@ int loadkmap_main(int argc, char **argv) fd = open("/dev/tty0", O_RDWR); if (fd < 0) { - fprintf(stderr, "Error opening /dev/tty0: %s\n", strerror(errno)); + errorMsg("Error opening /dev/tty0: %s\n", strerror(errno)); exit(FALSE); } read(0, buff, 7); if (0 != strncmp(buff, magic, 7)) { - fprintf(stderr, "This is not a valid binary keymap.\n"); + errorMsg("This is not a valid binary keymap.\n"); exit(FALSE); } if (MAX_NR_KEYMAPS != read(0, flags, MAX_NR_KEYMAPS)) { - fprintf(stderr, "Error reading keymap flags: %s\n", + errorMsg("Error reading keymap flags: %s\n", strerror(errno)); exit(FALSE); } ibuff = (u_short *) malloc(ibuffsz); if (!ibuff) { - fprintf(stderr, "Out of memory.\n"); + errorMsg("Out of memory.\n"); exit(FALSE); } @@ -87,7 +87,7 @@ int loadkmap_main(int argc, char **argv) while (pos < ibuffsz) { if ((readsz = read(0, (char *) ibuff + pos, ibuffsz - pos)) < 0) { - fprintf(stderr, "Error reading keymap: %s\n", + errorMsg("Error reading keymap: %s\n", strerror(errno)); exit(FALSE); } |