mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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
1 changed files with 2 additions and 2 deletions
|
@ -835,8 +835,8 @@ static void load_linux(FWCfgState *fw_cfg,
|
||||||
|
|
||||||
initrd_size = get_image_size(initrd_filename);
|
initrd_size = get_image_size(initrd_filename);
|
||||||
if (initrd_size < 0) {
|
if (initrd_size < 0) {
|
||||||
fprintf(stderr, "qemu: error reading initrd %s\n",
|
fprintf(stderr, "qemu: error reading initrd %s: %s\n",
|
||||||
initrd_filename);
|
initrd_filename, strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue