qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error


From: Andrew Jones
Subject: [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error
Date: Mon, 26 Oct 2015 15:06:13 +0100

Signed-off-by: Andrew Jones <address@hidden>
---

There are plenty of fprintf's left in vl.c, but here's another baby
step...

 vl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vl.c b/vl.c
index 9a64b75ebbd24..549c6675fe8df 100644
--- a/vl.c
+++ b/vl.c
@@ -4080,9 +4080,9 @@ int main(int argc, char **argv, char **envp)
 
     machine_class->max_cpus = machine_class->max_cpus ?: 1; /* Default to UP */
     if (max_cpus > machine_class->max_cpus) {
-        fprintf(stderr, "Number of SMP CPUs requested (%d) exceeds max CPUs "
-                "supported by machine '%s' (%d)\n", max_cpus,
-                machine_class->name, machine_class->max_cpus);
+        error_report("Number of SMP CPUs requested (%d) exceeds max CPUs "
+                     "supported by machine '%s' (%d)", max_cpus,
+                     machine_class->name, machine_class->max_cpus);
         exit(1);
     }
 
-- 
2.4.3




reply via email to

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