[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: Use register_t type in cpuinfo entries



Hi Bertrand,

On 09/03/2021 14:41, Bertrand Marquis wrote:
On 9 Mar 2021, at 12:04, Jan Beulich <jbeulich@xxxxxxxx> wrote:

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.

Interesting, I always thought a single XENLOG_* was enough for multi-line in the same printk.


Very right.

@Julien: feel free to tell me if you want a v2.

I would prefer if you resend a v2.

Cheers,

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.