lkml.org 
[lkml]   [2013]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, boot: Further compress CPUs bootup message

* Borislav Petkov <bp@alien8.de> wrote:

> +void smp_announce(void)
> +{
> + int num_nodes = num_online_nodes();
> +
> + printk(KERN_INFO "x86: Booted up %d node%s, %ld CPUs\n",
> + num_nodes, (num_nodes > 1 ? "s" : ""), (long)num_online_cpus());
> +}

That (long) cast looks weird - num_online_cpus() is 'unsigned int' so
changing the format to %d should do the trick, right?

> +void __weak smp_announce(void)
> +{
> + printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus());
> +}

Ditto.

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-09-28 20:21    [W:0.082 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site