Improve the printf message when a module failed to load. This gives the

user some clue about the possibility of a __FreeBSD_version mismatch.

Discussed with:	rwatson, jhb
Approved by:	re (kib)
This commit is contained in:
rpaulo 2009-07-21 14:18:25 +00:00
parent cbc212df17
commit 2620dac06e

View File

@ -2079,8 +2079,8 @@ linker_load_dependencies(linker_file_t lf)
}
error = linker_load_module(NULL, modname, lf, verinfo, NULL);
if (error) {
printf("KLD %s: depends on %s - not available\n",
lf->filename, modname);
printf("KLD %s: depends on %s - not available or"
" version mismatch\n", lf->filename, modname);
break;
}
}