]> xenbits.xensource.com Git - xen.git/commitdiff
x86, amd_ucode: flip revision numbers in printk
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Tue, 24 Jun 2014 07:46:58 +0000 (09:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Jun 2014 07:46:58 +0000 (09:46 +0200)
A failure would result in log message like so-
(XEN) microcode: CPU0 update from revision 0x6000637 to 0x6000626 failed
                                           ^^^^^^^^^^^^^^^^^^^^^^
The above message has the revision numbers inverted. Fix this.

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
master commit: 071a4c70a634f7d4f74cde4086ff3202968538c9
master date: 2014-06-02 10:19:27 +0200

xen/arch/x86/microcode_amd.c

index 30142452e9a2d0d037e0ec5288674565f255ca52..32d7fa179e890e02fee6f864c2618b53d1d7315e 100644 (file)
@@ -164,7 +164,7 @@ static int apply_microcode(int cpu)
     if ( rev != hdr->patch_id )
     {
         printk(KERN_ERR "microcode: CPU%d update from revision "
-               "%#x to %#x failed\n", cpu, hdr->patch_id, rev);
+               "%#x to %#x failed\n", cpu, rev, hdr->patch_id);
         return -EIO;
     }