From 2653ae855b033e266d3df8d24d5335931c731720 Mon Sep 17 00:00:00 2001 From: liujie Date: Tue, 21 Jan 2025 15:52:46 +0800 Subject: [PATCH] fix lan print --- ipmitool-lan.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ipmitool-lan.patch diff --git a/ipmitool-lan.patch b/ipmitool-lan.patch new file mode 100644 index 0000000..89c13cf --- /dev/null +++ b/ipmitool-lan.patch @@ -0,0 +1,20 @@ +diff -Naur ipmitool-IPMITOOL_1_8_19/lib/ipmi_lanp.c ipmitool-IPMITOOL_1_8_19_fix/lib/ipmi_lanp.c +--- ipmitool-IPMITOOL_1_8_19/lib/ipmi_lanp.c 2022-09-02 02:42:31.000000000 +0800 ++++ ipmitool-IPMITOOL_1_8_19_fix/lib/ipmi_lanp.c 2025-01-21 10:36:12.102780394 +0800 +@@ -236,8 +236,14 @@ + /* We treat them as valid but empty response */ + p->data = NULL; + p->data_len = 0; +- rc = p; +- /* fall through */ ++ ++ lprintf(LOG_INFO, "Get LAN Parameter '%s' command unsupported: %s", ++ p->desc, ++ specific_val2str(rsp->ccode, ++ get_lan_cc_vals, ++ completion_code_vals)); ++ return p; ++ + default: + /* other completion codes are treated as error */ + lprintf(LOG_INFO, "Get LAN Parameter '%s' command failed: %s", -- Gitee