x86/fpu: Print xfeature buffer size in decimal
authorDave Hansen <[email protected]>
Wed, 2 Sep 2015 23:31:24 +0000 (16:31 -0700)
committerIngo Molnar <[email protected]>
Mon, 14 Sep 2015 10:07:55 +0000 (12:07 +0200)
This is utterly a personal taste thing, but I find it way easier
to read structure sizes in decimal than in hex.

Signed-off-by: Dave Hansen <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/fpu/xstate.c

index 62fc001c7846d001490377485f445d4b598ebb64..b790dcbd3d2a43f17dd426295c15e793b0960eba 100644 (file)
@@ -187,7 +187,7 @@ static void __init setup_xstate_features(void)
                xstate_offsets[leaf] = ebx;
                xstate_sizes[leaf] = eax;
 
-               printk(KERN_INFO "x86/fpu: xstate_offset[%d]: %04x, xstate_sizes[%d]: %04x\n", leaf, ebx, leaf, eax);
+               printk(KERN_INFO "x86/fpu: xstate_offset[%d]: %4d, xstate_sizes[%d]: %4d\n", leaf, ebx, leaf, eax);
        }
 }
 
@@ -357,7 +357,7 @@ void __init fpu__init_system_xstate(void)
        setup_init_fpu_buf();
        setup_xstate_comp();
 
-       pr_info("x86/fpu: Enabled xstate features 0x%llx, context size is 0x%x bytes, using '%s' format.\n",
+       pr_info("x86/fpu: Enabled xstate features 0x%llx, context size is %d bytes, using '%s' format.\n",
                xfeatures_mask,
                xstate_size,
                cpu_has_xsaves ? "compacted" : "standard");