Re: [PATCH] x86, boot: Further compress CPUs bootup message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH] x86, boot: Further compress CPUs bootup message
- From: Ingo Molnar <mingo@xxxxxxxxxx>
- Date: Sat, 28 Sep 2013 19:54:44 +0200
- Cc: hpa@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, huawei.libin@xxxxxxxxxx, wangyijing@xxxxxxxxxx, fenghua.yu@xxxxxxxxx, tglx@xxxxxxxxxxxxx, guohanjun@xxxxxxxxxx, paul.gortmaker@xxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <20130928174749.GE5956@pd.tnic>
- User-agent: Mutt/1.5.21 (2010-09-15)
* Borislav Petkov <bp@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]