dbus-sensors: Remove ipmibsensor spams
Create a patch first before the rebase take place to source rev bump it.
Google-Bug-Id: 292249545
Google-Bug-Id: 293880303
Change-Id: I378bd67e48358fd327803776e652be629744a7fc
Signed-off-by: Willy Tu <wltu@google.com>
(cherry picked from commit db3cedca339fd7449b36c049351e79616c5cfbb4)
diff --git a/recipes-phosphor/sensors/dbus-sensors/0001-ipmbsensor-remove-debug-log.patch b/recipes-phosphor/sensors/dbus-sensors/0001-ipmbsensor-remove-debug-log.patch
new file mode 100644
index 0000000..51b04b5
--- /dev/null
+++ b/recipes-phosphor/sensors/dbus-sensors/0001-ipmbsensor-remove-debug-log.patch
@@ -0,0 +1,39 @@
+From 63c9122ea5ceaa89016663d259c1eda1705474f3 Mon Sep 17 00:00:00 2001
+From: Willy Tu <wltu@google.com>
+Date: Fri, 21 Jul 2023 10:17:16 -0700
+Subject: [PATCH] ipmbsensor: remove debug log
+
+The debug log causes log spams and should be removed.
+
+Patch Tracking Bug:
+Upstream info / review: b/293880303
+https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/65321
+Upstream-Status: Accepted
+Justification: Need this change before the rebase and not able to
+souce bump easily to get this change.
+
+Change-Id: Ib46b280ddf2247f2824a4c126690a0b51cf76ff6
+Signed-off-by: Willy Tu <wltu@google.com>
+---
+ src/IpmbSensor.cpp | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp
+index 51ccde1..55224dd 100644
+--- a/src/IpmbSensor.cpp
++++ b/src/IpmbSensor.cpp
+@@ -757,10 +757,7 @@ int main()
+ static_cast<sdbusplus::bus_t&>(*systemBus),
+ "type='signal',member='InterfacesRemoved',arg0path='" +
+ std::string(inventoryPath) + "/'",
+- [](sdbusplus::message_t& msg) {
+- std::cerr << " InterfacesRemoved called test.." << std::endl;
+- interfaceRemoved(msg, sensors);
+- });
++ [](sdbusplus::message_t& msg) { interfaceRemoved(msg, sensors); });
+
+ setupManufacturingModeMatch(*systemBus);
+ io.run();
+--
+2.41.0.487.g6d72f3e995-goog
+
diff --git a/recipes-phosphor/sensors/dbus-sensors_%.bbappend b/recipes-phosphor/sensors/dbus-sensors_%.bbappend
index 7da9773..ae21eae 100644
--- a/recipes-phosphor/sensors/dbus-sensors_%.bbappend
+++ b/recipes-phosphor/sensors/dbus-sensors_%.bbappend
@@ -87,3 +87,8 @@
PACKAGECONFIG[redfishsensor] = "-Dredfish=enabled, -Dredfish=disabled"
SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', \
'redfishsensor', 'xyz.openbmc_project.redfishsensor.service', '', d)}"
+
+# TODO(b/293880303): Remove this patch once rebase picks up the new change.
+SRC_URI:append:gbmc = " \
+ file://0001-ipmbsensor-remove-debug-log.patch \
+"