qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error
@ 2015-10-26 14:06 Andrew Jones
  2015-10-26 17:00 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Jones @ 2015-10-26 14:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: ehabkost

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

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error
  2015-10-26 14:06 [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error Andrew Jones
@ 2015-10-26 17:00 ` Eric Blake
  2015-10-26 17:15   ` Eduardo Habkost
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Blake @ 2015-10-26 17:00 UTC (permalink / raw)
  To: Andrew Jones, qemu-devel; +Cc: ehabkost

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

On 10/26/2015 08:06 AM, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
> 
> 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(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error
  2015-10-26 17:00 ` Eric Blake
@ 2015-10-26 17:15   ` Eduardo Habkost
  0 siblings, 0 replies; 3+ messages in thread
From: Eduardo Habkost @ 2015-10-26 17:15 UTC (permalink / raw)
  To: Eric Blake; +Cc: Andrew Jones, qemu-devel

On Mon, Oct 26, 2015 at 11:00:02AM -0600, Eric Blake wrote:
> On 10/26/2015 08:06 AM, Andrew Jones wrote:
> > Signed-off-by: Andrew Jones <drjones@redhat.com>
> > ---
> > 
> > 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(-)
> 
> Reviewed-by: Eric Blake <eblake@redhat.com>

I just sent a patch changing all fprintf(stderr) calls in vl.c. If this
patch is appropriate post-soft-freeze (I am not sure it is), we could
simply change all fprintf() calls in vl.c in a single step.

-- 
Eduardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-26 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 14:06 [Qemu-devel] [PATCH] vl: trivial: use error_report for max-cpu error Andrew Jones
2015-10-26 17:00 ` Eric Blake
2015-10-26 17:15   ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).