diff mbox

[v2] vl: trivial: minor tweaks to a max-cpu error msg

Message ID 1445866293-4570-1-git-send-email-drjones@redhat.com
State New
Headers show

Commit Message

Andrew Jones Oct. 26, 2015, 1:31 p.m. UTC
Also switch to using error_report.

Signed-off-by: Andrew Jones <drjones@redhat.com>

---
v2: Also switch to using error_report [Markus]

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

-- 
2.4.3
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 7c806a2428399..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);
     }