diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2009-02-10 15:50:19 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2009-02-10 15:50:19 +0000 |
| commit | a1d7ce03ea70fb29b37f07706534ac41f722d0f1 (patch) | |
| tree | cbc7f972e68875419580625b01212e8ca9a248e6 /sys/kern/kern_linker.c | |
| parent | fc94457307a2df92744f9f5b0970381cc711cdc0 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_linker.c')
| -rw-r--r-- | sys/kern/kern_linker.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 7805b0163fd5..93507134da69 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -425,6 +425,14 @@ linker_load_file(const char *filename, linker_file_t *result) * the module was not found. */ if (foundfile) { + + /* + * If the file type has not been recognized by the last try + * printout a message before to fail. + */ + if (error == ENOSYS) + printf("linker_load_file: Unsupported file type\n"); + /* * Format not recognized or otherwise unloadable. * When loading a module that is statically built into |
