In linker_load_file() print name of a file that failed to load.

Discussed with:	kib
This commit is contained in:
Gleb Smirnoff 2017-03-09 00:56:07 +00:00
parent c75e266608
commit d0147e10ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314931

View File

@ -459,7 +459,8 @@ linker_load_file(const char *filename, linker_file_t *result)
* 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.