summaryrefslogtreecommitdiffstats
path: root/hw/ppc/ppc4xx_devs.c
diff options
context:
space:
mode:
authorMarkus Armbruster2020-04-22 15:48:14 +0200
committerMarkus Armbruster2020-04-29 08:01:52 +0200
commit0f1eddf5ed7e35d8d16dfa042ced1107c762cec4 (patch)
treeeb87820f3efbbbe3b517ea426478a087cd13ca99 /hw/ppc/ppc4xx_devs.c
parentsmbus: Fix spd_data_generate() error API violation (diff)
downloadqemu-0f1eddf5ed7e35d8d16dfa042ced1107c762cec4.tar.gz
qemu-0f1eddf5ed7e35d8d16dfa042ced1107c762cec4.tar.xz
qemu-0f1eddf5ed7e35d8d16dfa042ced1107c762cec4.zip
bamboo, sam460ex: Tidy up error message for unsupported RAM size
Improve $ ppc-softmmu/qemu-system-ppc -M sam460ex -m 4096 qemu-system-ppc: Max 1 banks of 2048 ,1024 ,512 ,256 ,128 ,64 ,32 MB DIMM/bank supported qemu-system-ppc: Possible valid RAM size: 2048 to qemu-system-ppc: at most 1 bank of 2048, 1024, 512, 256, 128, 64, 32 MiB each supported Possible valid RAM size: 1024 MiB Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200422134815.1584-4-armbru@redhat.com> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/ppc/ppc4xx_devs.c')
-rw-r--r--hw/ppc/ppc4xx_devs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ppc/ppc4xx_devs.c b/hw/ppc/ppc4xx_devs.c
index 3376c43ff5..f1651e04d9 100644
--- a/hw/ppc/ppc4xx_devs.c
+++ b/hw/ppc/ppc4xx_devs.c
@@ -716,11 +716,11 @@ void ppc4xx_sdram_banks(MemoryRegion *ram, int nr_banks,
for (i = 0; sdram_bank_sizes[i]; i++) {
g_string_append_printf(s, "%" PRIi64 "%s",
sdram_bank_sizes[i] / MiB,
- sdram_bank_sizes[i + 1] ? " ," : "");
+ sdram_bank_sizes[i + 1] ? ", " : "");
}
- error_report("Max %d banks of %s MB DIMM/bank supported",
- nr_banks, s->str);
- error_report("Possible valid RAM size: %" PRIi64,
+ error_report("at most %d bank%s of %s MiB each supported",
+ nr_banks, nr_banks == 1 ? "" : "s", s->str);
+ error_printf("Possible valid RAM size: %" PRIi64 " MiB \n",
used_size ? used_size / MiB : sdram_bank_sizes[i - 1] / MiB);
g_string_free(s, true);