Fix printf missing format variables warnings.
Include the failing kernel file name for errors in beri_elf64_exec(). Sponsored by: DARPA / AFRL
This commit is contained in:
parent
9433594417
commit
9bd8ae10e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327704
@ -80,14 +80,14 @@ beri_elf64_exec(struct preloaded_file *fp)
|
||||
|
||||
md = file_findmetadata(fp, MODINFOMD_ELFHDR);
|
||||
if (md == NULL) {
|
||||
printf("%s: file_findmetadata failed\n");
|
||||
printf("%s: file_findmetadata failed\n", fp->f_name);
|
||||
return (EFTYPE);
|
||||
}
|
||||
ehdr = (Elf_Ehdr *)md->md_data;
|
||||
|
||||
error = md_load64(fp->f_args, &mdp);
|
||||
if (error) {
|
||||
printf("%s: md_load64 failed\n");
|
||||
printf("%s: md_load64 failed\n", fp->f_name);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user