It eases code review, unit is explicit. Patch generated using:
$ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> Reviewed-by: Thomas Huth <th...@redhat.com> Acked-by: Cornelia Huck <coh...@redhat.com> --- hw/s390x/sclp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c index 047d577313..2ffec8f675 100644 --- a/hw/s390x/sclp.c +++ b/hw/s390x/sclp.c @@ -288,8 +288,8 @@ static void sclp_realize(DeviceState *dev, Error **errp) ret = s390_set_memory_limit(machine->maxram_size, &hw_limit); if (ret == -E2BIG) { - error_setg(&err, "host supports a maximum of %" PRIu64 " GB", - hw_limit >> 30); + error_setg(&err, "host supports a maximum of %llu GB", + hw_limit / G_BYTE); } else if (ret) { error_setg(&err, "setting the guest size failed"); } -- 2.16.2