Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2017 00:56:07 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314931 - head/sys/kern
Message-ID:  <201703090056.v290u7v4050621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Mar  9 00:56:07 2017
New Revision: 314931
URL: https://svnweb.freebsd.org/changeset/base/314931

Log:
  In linker_load_file() print name of a file that failed to load.
  
  Discussed with:	kib

Modified:
  head/sys/kern/kern_linker.c

Modified: head/sys/kern/kern_linker.c
==============================================================================
--- head/sys/kern/kern_linker.c	Thu Mar  9 00:55:19 2017	(r314930)
+++ head/sys/kern/kern_linker.c	Thu Mar  9 00:56:07 2017	(r314931)
@@ -459,7 +459,8 @@ linker_load_file(const char *filename, l
 		 * printout a message before to fail.
 		 */
 		if (error == ENOSYS)
-			printf("linker_load_file: Unsupported file type\n");
+			printf("%s: %s - unsupported file type\n",
+			    __func__, filename);
 
 		/*
 		 * Format not recognized or otherwise unloadable.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703090056.v290u7v4050621>