Author: emaste
Date: Fri Nov 27 21:27:39 2015
New Revision: 291409
URL: https://svnweb.freebsd.org/changeset/base/291409

Log:
  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

Modified:
  head/usr.sbin/kbdmap/kbdmap.c

Modified: head/usr.sbin/kbdmap/kbdmap.c
==============================================================================
--- head/usr.sbin/kbdmap/kbdmap.c       Fri Nov 27 19:43:36 2015        
(r291408)
+++ head/usr.sbin/kbdmap/kbdmap.c       Fri Nov 27 21:27:39 2015        
(r291409)
@@ -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*),
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to