aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/tboot.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-09-21 14:25:12 +0200
committerJan Beulich <jbeulich@suse.com>2012-09-21 14:25:12 +0200
commit8a858447e93a080c8f46dfd5224f6952122da05f (patch)
treea9f63a18e565e4d784374274cdd7b0c80fbfbbdb /xen/arch/x86/tboot.c
parent724b55f48a6c9fca00ddeeca5a130657680caf0b (diff)
downloadxen-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/tboot.c')
-rw-r--r--xen/arch/x86/tboot.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index 52d5fa20aa..a61b19eb05 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -119,12 +119,12 @@ void __init tboot_probe(void)
g_tboot_shared = tboot_shared;
printk("TBOOT: found shared page at phys addr %lx:\n", p_tboot_shared);
printk(" version: %d\n", tboot_shared->version);
- printk(" log_addr: 0x%08x\n", tboot_shared->log_addr);
- printk(" shutdown_entry: 0x%08x\n", tboot_shared->shutdown_entry);
- printk(" tboot_base: 0x%08x\n", tboot_shared->tboot_base);
- printk(" tboot_size: 0x%x\n", tboot_shared->tboot_size);
+ printk(" log_addr: %#x\n", tboot_shared->log_addr);
+ printk(" shutdown_entry: %#x\n", tboot_shared->shutdown_entry);
+ printk(" tboot_base: %#x\n", tboot_shared->tboot_base);
+ printk(" tboot_size: %#x\n", tboot_shared->tboot_size);
if ( tboot_shared->version >= 6 )
- printk(" flags: 0x%08x\n", tboot_shared->flags);
+ printk(" flags: %#x\n", tboot_shared->flags);
/* these will be needed by tboot_protect_mem_regions() and/or
tboot_parse_dmar_table(), so get them now */
@@ -352,7 +352,7 @@ void tboot_shutdown(uint32_t shutdown_type)
__PAGE_HYPERVISOR);
if ( err != 0 )
{
- printk("error (0x%x) mapping tboot pages (mfns) @ 0x%x, 0x%x\n", err,
+ printk("error (%#x) mapping tboot pages (mfns) @ %#x, %#x\n", err,
map_base, map_size);
return;
}