pc.c: better error message on initrd sizing failure
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
d160024fe5
commit
7454e51d2b
@ -835,8 +835,8 @@ static void load_linux(FWCfgState *fw_cfg,
|
||||
|
||||
initrd_size = get_image_size(initrd_filename);
|
||||
if (initrd_size < 0) {
|
||||
fprintf(stderr, "qemu: error reading initrd %s\n",
|
||||
initrd_filename);
|
||||
fprintf(stderr, "qemu: error reading initrd %s: %s\n",
|
||||
initrd_filename, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user