diff mbox

[1/2] vl: trivial: minor tweaks to a max-cpu error msg

Message ID 1445189728-860-2-git-send-email-drjones@redhat.com
State Accepted
Commit 31bfa2a40004204aee503c6417fbafb5d17e0a51
Headers show

Commit Message

Andrew Jones Oct. 18, 2015, 5:35 p.m. UTC
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 vl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Eduardo Habkost Oct. 19, 2015, 6:51 p.m. UTC | #1
On Sun, Oct 18, 2015 at 07:35:27PM +0200, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>

Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>

If this can go through my tree, please let me know.

> ---
>  vl.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/vl.c b/vl.c
> index 7c806a2428399..9a64b75ebbd24 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4080,8 +4080,8 @@ 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,
> +        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);
>          exit(1);
>      }
> -- 
> 2.4.3
>
Markus Armbruster Oct. 20, 2015, 7:12 a.m. UTC | #2
Andrew Jones <drjones@redhat.com> writes:

> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  vl.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 7c806a2428399..9a64b75ebbd24 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4080,8 +4080,8 @@ 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,
> +        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);
>          exit(1);
>      }

While you're touching this, error_report(), please.
Paolo Bonzini Oct. 20, 2015, 12:05 p.m. UTC | #3
On 19/10/2015 20:51, Eduardo Habkost wrote:
> On Sun, Oct 18, 2015 at 07:35:27PM +0200, Andrew Jones wrote:
>> Signed-off-by: Andrew Jones <drjones@redhat.com>
> 
> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
> 
> If this can go through my tree, please let me know.

Sure, why not.

Paolo

>> ---
>>  vl.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/vl.c b/vl.c
>> index 7c806a2428399..9a64b75ebbd24 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -4080,8 +4080,8 @@ 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,
>> +        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);
>>          exit(1);
>>      }
>> -- 
>> 2.4.3
>>
>
Andrew Jones Oct. 26, 2015, 1 p.m. UTC | #4
On Tue, Oct 20, 2015 at 09:12:18AM +0200, Markus Armbruster wrote:
> Andrew Jones <drjones@redhat.com> writes:

> 

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

> > ---

> >  vl.c | 4 ++--

> >  1 file changed, 2 insertions(+), 2 deletions(-)

> >

> > diff --git a/vl.c b/vl.c

> > index 7c806a2428399..9a64b75ebbd24 100644

> > --- a/vl.c

> > +++ b/vl.c

> > @@ -4080,8 +4080,8 @@ 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,

> > +        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);

> >          exit(1);

> >      }

> 

> While you're touching this, error_report(), please.

>


Good call. Eduardo, I'll send you a v2 now.

drew
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 7c806a2428399..9a64b75ebbd24 100644
--- a/vl.c
+++ b/vl.c
@@ -4080,8 +4080,8 @@  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,
+        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);
         exit(1);
     }