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

Discussed with:	kib
This commit is contained in:
glebius 2017-03-09 00:56:07 +00:00
parent 65907cccb6
commit e5ca15252d

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.