[Skiboot] [PATCH 1/2] hdata: Convert printf based log messages to prlog based logs
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Tue Mar 17 16:47:54 AEDT 2015
This patch changes all printf based log messages in the
hdata/slca code to prlog based log messages.
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
0 files changed
diff --git a/hdata/slca.c b/hdata/slca.c
index a709aaa..9dd679e 100644
--- a/hdata/slca.c
+++ b/hdata/slca.c
@@ -45,7 +45,8 @@ const struct slca_entry *slca_get_entry(uint16_t slca_index)
if (s_entry && entry_sz >= sizeof(*s_entry))
return s_entry;
} else
- printf("SLCA: Can't find slca_entry for index %d\n", slca_index);
+ prlog(PR_NOTICE,
+ "SLCA: Can't find slca_entry for index %d\n", slca_index);
return NULL;
}
@@ -57,7 +58,8 @@ const char *slca_get_vpd_name(uint16_t slca_index)
if (s_entry)
return (const char *)s_entry->fru_id;
else
- printf("SLCA: Can't find fru_id for index %d\n", slca_index);
+ prlog(PR_NOTICE,
+ "SLCA: Can't find fru_id for index %d\n", slca_index);
return NULL;
}
@@ -69,7 +71,7 @@ const char *slca_get_loc_code_index(uint16_t slca_index)
if (s_entry)
return s_entry->loc_code;
else
- printf("SLCA: Entry %d bad idata\n", slca_index);
+ prlog(PR_NOTICE, "SLCA: Entry %d bad idata\n", slca_index);
return NULL;
}
More information about the Skiboot
mailing list