[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/7] exynos4: Use EXYNOS4210_NCPUS instead of max_cp

From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH 1/7] exynos4: Use EXYNOS4210_NCPUS instead of max_cpus on error message
Date: Tue, 18 Aug 2015 12:08:48 -0700

The code is checking smp_cpus against EXYNOS4210_NCPUS, not against
max_cpus, so use EXYNOS4210_NCPUS in the error message for consistency.

Cc: Peter Maydell <address@hidden>
Cc: Evgeny Voevodin <address@hidden>
Cc: Maksim Kozlov <address@hidden>
Cc: Igor Mitsyanko <address@hidden>
Cc: Dmitry Solodkiy <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
 hw/arm/exynos4_boards.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/arm/exynos4_boards.c b/hw/arm/exynos4_boards.c
index d644db1..3f88c4a 100644
--- a/hw/arm/exynos4_boards.c
+++ b/hw/arm/exynos4_boards.c
@@ -100,8 +100,7 @@ static Exynos4210State 
*exynos4_boards_init_common(MachineState *machine,
     if (smp_cpus != EXYNOS4210_NCPUS && !qtest_enabled()) {
         fprintf(stderr, "%s board supports only %d CPU cores. Ignoring 
                 " value.\n",
-                exynos4_machines[board_type].name,
-                exynos4_machines[board_type].max_cpus);
+                exynos4_machines[board_type].name, EXYNOS4210_NCPUS);
     exynos4_board_binfo.ram_size = exynos4_board_ram_size[board_type];

reply via email to

[Prev in Thread] Current Thread [Next in Thread]