From 4444af68de5a9fa588a296537208ff24f7c78212 Mon Sep 17 00:00:00 2001 From: Qiumiao Zhang Date: Mon, 24 Jun 2024 11:39:54 +0000 Subject: [PATCH] fix log printing in tpcm_kunpeng module again Signed-off-by: Qiumiao Zhang --- add-TPCM-support-with-ipmi-channel.patch | 10 +++++----- grub2.spec | 10 ++++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/add-TPCM-support-with-ipmi-channel.patch b/add-TPCM-support-with-ipmi-channel.patch index 9bb9e40..364fb00 100644 --- a/add-TPCM-support-with-ipmi-channel.patch +++ b/add-TPCM-support-with-ipmi-channel.patch @@ -399,9 +399,9 @@ index 0000000..57a4cea + grub_dprintf ("tpcm", "tpcm control switch turned off, ignore excute_ipmi_cmd failure.\n"); + else + { -+ err = GRUB_ERR_BUG; -+ grub_dprintf ("tpcm", "excute_ipmi_cmd failed, request sub_cmd:0x%x, ret:%lu\n", -+ request_data->SubCmd, status); ++ err = grub_error (GRUB_ERR_BUG, ++ "excute_ipmi_cmd failed, request sub_cmd:0x%x, ret:%lu\n", ++ request_data->SubCmd, status); + } + goto fail; + } @@ -458,8 +458,8 @@ index 0000000..57a4cea + &response_length, NULL); + if (status != GRUB_EFI_SUCCESS) + { -+ grub_printf ("excute_ipmi_cmd failed, request sub_cmd:%d, ret:%lu\n", -+ request_data.SubCmd, status); ++ grub_dprintf ("tpcm", "excute_ipmi_cmd failed, request sub_cmd:%d, ret:%lu\n", ++ request_data.SubCmd, status); + /* if we excute_ipmi_cmd, it could be the fllowing results: + * 1. uefi have this interface, but did not implement it. + * 2. uefi have implemented, but bmc did not support TPCM diff --git a/grub2.spec b/grub2.spec index a75cb87..3c036e8 100644 --- a/grub2.spec +++ b/grub2.spec @@ -14,7 +14,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 18 +Release: 19 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -447,7 +447,13 @@ fi %{_datadir}/man/man* %changelog -* Wed Jun 5 2024 zhangqiumiao - 1:2.12-18 +* Mon Jun 24 2024 zhangqiumiao - 1:2.12-19 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix log printing in tpcm_kunpeng module again + +* Wed Jun 19 2024 zhangqiumiao - 1:2.12-18 - Type:bugfix - CVE:NA - SUG:NA -- Gitee