Reducing IPMI logging footprint

-host-ipmid is very noisy in terms of journal logging. A small step
towards cleaning that up.
-Also converted printfs to phosphor-logging.

Partially Resolves openbmc/openbmc#2507

Change-Id: I749c19c18d1cabf6f0216830c8cb0a08ee43d6de
Signed-off-by: Aditya Saripalli <aditya0124@gmail.com>
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/ipmisensor.cpp b/ipmisensor.cpp
index 3bca4e7..2e987d0 100644
--- a/ipmisensor.cpp
+++ b/ipmisensor.cpp
@@ -238,19 +238,18 @@
 	return rc;
 }
 
-void debug_print_ok_to_dont_care(uint8_t stype, int offset)
-{
-	printf("LOOKATME: Sensor should not be reported:  Type 0x%02x, Offset 0x%02x\n",
-		stype, offset);
-}
-
 bool shouldReport(uint8_t sensorType, int offset, int *index) {
 
 	bool rc = false;
 
 	if (findindex(sensorType, offset, index)) { rc = true;	}
-
-	if (rc==false) { debug_print_ok_to_dont_care(sensorType, offset); }
+    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));
+#endif
+        }
 
 	return rc;
 }