svn commit: r291409 - head/usr.sbin/kbdmap

Ed Maste emaste at FreeBSD.org
Fri Nov 27 21:27:40 UTC 2015


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*),


More information about the svn-src-head mailing list