import ledmon-0.96-5.el9

This commit is contained in:
CentOS Sources 2023-03-28 09:07:07 +00:00 committed by Stepan Oksanichenko
parent 2a19feedf2
commit 1e6c428904
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From bd78c563daa6df17ad442d10127526f5450fd06b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kinga=20Ta=C5=84ska?= <kinga.tanska@intel.com>
Date: Thu, 17 Nov 2022 15:55:06 +0100
Subject: [PATCH] ipmi: avoid error messages on non-dell platforms (#112)
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
---
src/ipmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipmi.c b/src/ipmi.c
index 3862840..d7d9e89 100644
--- a/src/ipmi.c
+++ b/src/ipmi.c
@@ -126,7 +126,7 @@ int ipmicmd(int sa, int lun, int netfn, int cmd, int datalen, void *data,
goto end;
}
if (rcv.msg.data[0])
- log_info("IPMI Error: %.2x\n", rcv.msg.data[0]);
+ log_debug("IPMI Error: %.2x\n", rcv.msg.data[0]);
rc = 0;
*rlen = rcv.msg.data_len - 1;
memcpy(resp, rcv.msg.data + 1, *rlen);

View File

@ -1,12 +1,13 @@
Summary: Enclosure LED Utilities Summary: Enclosure LED Utilities
Name: ledmon Name: ledmon
Version: 0.96 Version: 0.96
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://github.com/intel/ledmon URL: https://github.com/intel/ledmon
Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: ledmon_format-truncation-flag.patch Patch0: ledmon_format-truncation-flag.patch
Patch1: ipmi-avoid-error-messages-on-non-dell-platforms.patch
BuildRequires: sg3_utils-devel BuildRequires: sg3_utils-devel
BuildRequires: pciutils-devel BuildRequires: pciutils-devel
@ -31,6 +32,7 @@ use this application.
%setup -q %setup -q
# remove -Werror=format-truncation=1 in order to build package # remove -Werror=format-truncation=1 in order to build package
%patch0 -p1 %patch0 -p1
%patch1 -p1
autoreconf -fiv autoreconf -fiv
%build %build
@ -58,6 +60,9 @@ make
%{_unitdir}/ledmon.service %{_unitdir}/ledmon.service
%changelog %changelog
* Mon Nov 28 2022 Jan Macku <jamacku@redhat.com> - 0.96-5
- Decrease log level of IPMI messages (#2148954)
* Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-4 * Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-4
- Use systemd-rpm-macros to handle ledmon.service (#2073332) - Use systemd-rpm-macros to handle ledmon.service (#2073332)