Messages in this thread Patch in this message | | | From | Ashok Raj <> | Subject | [PATCH 11/13] x86/microcode: Display revisions only when update is successful | Date | Fri, 14 Oct 2022 13:09:11 -0700 |
| |
Display the update message only when its successful
Signed-off-by: Ashok Raj <ashok.raj@intel.com> --- arch/x86/kernel/cpu/microcode/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 46e9c2d8fae0..c6cd815190b1 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -592,8 +592,9 @@ static int microcode_reload_late(void) unregister_nmi_handler(NMI_LOCAL, "ucode_nmi"); - pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n", - old, boot_cpu_data.microcode); + if (!ret) + pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n", + old, boot_cpu_data.microcode); done: return ret; -- 2.34.1
| |