aboutsummaryrefslogtreecommitdiff
path: root/hdata/slca.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-03-17 11:17:54 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-17 17:03:04 +1100
commit320316c8fc5f59047390842230b729667aa2f6b8 (patch)
treecc4c9dd01ad25c45a2725248a42f48f9cb41ce7e /hdata/slca.c
parentecf6309f67f6df13f8b20c34559bb989f74e52d2 (diff)
downloadskiboot-320316c8fc5f59047390842230b729667aa2f6b8.zip
skiboot-320316c8fc5f59047390842230b729667aa2f6b8.tar.gz
skiboot-320316c8fc5f59047390842230b729667aa2f6b8.tar.bz2
hdata: Convert printf based log messages to prlog based logs
This patch changes all printf based log messages in the hdata/slca code to prlog based log messages. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/slca.c')
-rw-r--r--hdata/slca.c8
1 files changed, 5 insertions, 3 deletions
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;
}