cleaned up error message
diff --git a/objects/pcie_slot_present_obj.c b/objects/pcie_slot_present_obj.c
index 8105f6f..64b30f5 100644
--- a/objects/pcie_slot_present_obj.c
+++ b/objects/pcie_slot_present_obj.c
@@ -1,5 +1,6 @@
#include "interfaces/openbmc_intf.h"
#include "openbmc.h"
+#include <stdio.h>
#include "gpio.h"
#define NUM_SLOTS 8
GPIO slots[NUM_SLOTS] = {
@@ -23,7 +24,7 @@
/* ---------------------------------------------------------------------------------------------------- */
int get_object(GDBusProxy *proxy, GPIO* gpio, object_info* obj_info)
{
- g_print("Here: %s\n",gpio->name);
+ g_print("Checking Presence: %s\n",gpio->name);
GError *error;
GVariant *parm;
GVariant *result;
@@ -83,7 +84,7 @@
} while(0);
if (rc != GPIO_OK)
{
- g_print("ERROR: gpio error %s\n",gpio->name);
+ printf("ERROR pcie_slot_present: GPIO error %s (rc=%d)\n",gpio->name,rc);
}
return rc;
}