diff options
author | emaste <emaste@FreeBSD.org> | 2015-11-27 21:27:39 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-11-27 21:27:39 +0000 |
commit | 1ed55b5a763320ffa25525cec4855cf0b4c544c4 (patch) | |
tree | 7c2b84a46f2e15888152db672c50d376c7afdb32 /usr.sbin | |
parent | d3add9250edf9abedf7120b8b914f206a51d3c2e (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/kbdmap/kbdmap.c | 2 |
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*), |