Re: [PATCH] print memory in MB units in initrd-too-large errmsg

2023-08-06 Thread jim . cromie
On Sat, Aug 5, 2023 at 12:26 AM Markus Armbruster wrote: > > Jim Cromie writes: > > > Change 2 error messages to display sizes in MB, not bytes. > > > > qemu: initrd is too large, cannot support this. (max: 2047 MB, need 5833 MB) > > > > Also, disti

[PATCH] print memory in MB units in initrd-too-large errmsg

2023-08-04 Thread Jim Cromie
size check. With MB displayed, I have to ask: is it coincidence that max == 2048-1 ? Signed-off-by: Jim Cromie --- hw/i386/x86.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/i386/x86.c b/hw/i386/x86.c index a88a126123..0677fe2fd1 100644 --- a/hw/i386/x86.c +++ b/hw/