convert ipmisensor.cpp to use lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I33c065cd9af4d9cb61787fc088d63752998534b6
diff --git a/ipmisensor.cpp b/ipmisensor.cpp
index 1401c55..ee9be19 100644
--- a/ipmisensor.cpp
+++ b/ipmisensor.cpp
@@ -2,6 +2,8 @@
#include <malloc.h>
+#include <phosphor-logging/lg2.hpp>
+
extern uint8_t find_type_for_sensor_number(uint8_t);
struct sensorRES_t
@@ -285,9 +287,10 @@
if (rc == false)
{
#ifdef __IPMI_DEBUG__
- log<level::DEBUG>("LOOKATME: Sensor should not be reported",
- entry("SENSORTYPE=0x%02x", sensorType),
- entry("OFFSET=0x%02x", offset));
+ lg2::debug("LOOKATME: Sensor should not be reported, "
+ "sensor type: {SENSORTYPE}, offset: {OFFSET}",
+ SENSORTYPE, lg2::hex, sensorType, "OFFSET", lg2::hex,
+ offset);
#endif
}