diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-09-21 14:25:12 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-09-21 14:25:12 +0200 |
commit | 8a858447e93a080c8f46dfd5224f6952122da05f (patch) | |
tree | a9f63a18e565e4d784374274cdd7b0c80fbfbbdb /xen/arch/x86/oprofile | |
parent | 724b55f48a6c9fca00ddeeca5a130657680caf0b (diff) | |
download | xen-8a858447e93a080c8f46dfd5224f6952122da05f.tar.gz xen-8a858447e93a080c8f46dfd5224f6952122da05f.tar.bz2 xen-8a858447e93a080c8f46dfd5224f6952122da05f.zip |
printk: prefer %#x et at over 0x%x
Performance is not an issue with printk(), so let the function do
minimally more work and instead save a byte per affected format
specifier.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/op_model_athlon.c | 4 | ||||
-rw-r--r-- | xen/arch/x86/oprofile/op_model_p4.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/xen/arch/x86/oprofile/op_model_athlon.c b/xen/arch/x86/oprofile/op_model_athlon.c index f3f7536788..e784018587 100644 --- a/xen/arch/x86/oprofile/op_model_athlon.c +++ b/xen/arch/x86/oprofile/op_model_athlon.c @@ -478,7 +478,7 @@ static int __init init_ibs_nmi(void) if (value != (IBSCTL_LVTOFFSETVAL | APIC_EILVT_LVTOFF_IBS)) { printk("Xenoprofile: Failed to setup IBS LVT offset, " - "IBSCTL = %#08x\n", value); + "IBSCTL = %#x\n", value); return 1; } nodes++; @@ -523,7 +523,7 @@ void __init ibs_init(void) return; } - printk("Xenoprofile: AMD IBS detected (0x%08x)\n", + printk("Xenoprofile: AMD IBS detected (%#x)\n", (unsigned)ibs_caps); } diff --git a/xen/arch/x86/oprofile/op_model_p4.c b/xen/arch/x86/oprofile/op_model_p4.c index c9f832b3b1..34f5fdbb7c 100644 --- a/xen/arch/x86/oprofile/op_model_p4.c +++ b/xen/arch/x86/oprofile/op_model_p4.c @@ -485,8 +485,7 @@ static void pmc_setup_one_p4_counter(unsigned int ctr) /* find our event binding structure. */ if (counter_config[ctr].event <= 0 || counter_config[ctr].event > NUM_EVENTS) { - printk(KERN_ERR - "oprofile: P4 event code 0x%lx out of range\n", + printk(KERN_ERR "oprofile: P4 event code %#lx out of range\n", counter_config[ctr].event); return; } @@ -526,7 +525,7 @@ static void pmc_setup_one_p4_counter(unsigned int ctr) } printk(KERN_ERR - "oprofile: P4 event code 0x%lx no binding, stag %d ctr %d\n", + "oprofile: P4 event code %#lx no binding, stag %d ctr %d\n", counter_config[ctr].event, stag, ctr); } |