summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdmap
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-11-27 21:27:39 +0000
committeremaste <emaste@FreeBSD.org>2015-11-27 21:27:39 +0000
commit1ed55b5a763320ffa25525cec4855cf0b4c544c4 (patch)
tree7c2b84a46f2e15888152db672c50d376c7afdb32 /usr.sbin/kbdmap
parentd3add9250edf9abedf7120b8b914f206a51d3c2e (diff)
downloadFreeBSD-src-1ed55b5a763320ffa25525cec4855cf0b4c544c4.zip
FreeBSD-src-1ed55b5a763320ffa25525cec4855cf0b4c544c4.tar.gz
kbdmap: include filename when reporting fopen() failure
Previously only one of two cases reported the file name. Use the same error string in both cases. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/kbdmap')
-rw-r--r--usr.sbin/kbdmap/kbdmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c
index 4f983a5..0670d1b 100644
--- a/usr.sbin/kbdmap/kbdmap.c
+++ b/usr.sbin/kbdmap/kbdmap.c
@@ -692,7 +692,7 @@ menu_read(void)
fclose(fp);
} else
- printf("Could not open file\n");
+ fprintf(stderr, "Could not open %s for reading\n", filename);
if (show) {
qsort(lang_list->sl_str, lang_list->sl_cur, sizeof(char*),
OpenPOWER on IntegriCloud