Mercurial > illumos > git > illumos-omnios
changeset 22381:18825952d227
11940 loader: multiboot2_loadfile read error should include file name and newline
Reviewed by: Matthias Scheler <matthias.scheler@wdc.com>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Thu, 07 Nov 2019 10:13:36 +0200 |
parents | 13d2cba2e231 |
children | 8f8c270242a4 |
files | usr/src/boot/sys/boot/common/multiboot2.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/boot/sys/boot/common/multiboot2.c Wed Nov 21 23:16:04 2018 +0200 +++ b/usr/src/boot/sys/boot/common/multiboot2.c Thu Nov 07 10:13:36 2019 +0200 @@ -270,7 +270,8 @@ fp->f_size = archsw.arch_readin(fd, fp->f_addr, st.st_size); if (fp->f_size != st.st_size) { - printf("error reading: %s", strerror(errno)); + printf("error reading %s: %s\n", filename, + strerror(errno)); file_discard(fp); error = EIO; goto out;