x86: Add debugging when a microcode update fails
[oweals/u-boot.git] / arch / x86 / cpu / intel_common / cpu.c
index 0fdef6f3690b50ef1c472fa07fd4b7d8de771634..ae42095f4b053fe7d1df5ca1a34ef7951e10dd23 100644 (file)
@@ -42,8 +42,10 @@ int cpu_common_init(void)
        enable_lapic();
 
        ret = microcode_update_intel();
-       if (ret && ret != -EEXIST)
+       if (ret && ret != -EEXIST) {
+               debug("%s: Microcode update failure (err=%d)\n", __func__, ret);
                return ret;
+       }
 
        /* Enable upper 128bytes of CMOS */
        writel(1 << 2, RCB_REG(RC));