|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm: Use register_t type in cpuinfo entries
On 08.03.2021 20:48, Julien Grall wrote:
> On 08/03/2021 17:18, Bertrand Marquis wrote:
>> --- a/xen/arch/arm/smpboot.c
>> +++ b/xen/arch/arm/smpboot.c
>> @@ -321,7 +321,8 @@ void start_secondary(void)
>> if ( !opt_hmp_unsafe &&
>> current_cpu_data.midr.bits != boot_cpu_data.midr.bits )
>> {
>> - printk(XENLOG_ERR "CPU%u MIDR (0x%x) does not match boot CPU MIDR
>> (0x%x),\n"
>> + printk(XENLOG_ERR "CPU%u MIDR (0x%"PRIregister") does not match
>> boot "
>> + "CPU MIDR (0x%"PRIregister"),\n"
>
> For printk messages, we don't tend to split it like that (even for more
> than 80 characters one). Instead, the preferred approach is:
>
> printk(XENLOG_ERR
> "line 1\n"
> "line 2\n")
Except of course you want to repeat XENLOG_ERR for the 2nd line.
Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |