<font size=2 face="sans-serif">So what will the actual result of these
changes be? Is this going to change where our messages show up?</font><br><font size=2 face="sans-serif"><br>--<br>Dan Crowell<br>Senior Software Engineer - Power Systems Enablement Firmware<br>IBM Rochester: t/l 553-2987<br>dcrowell@us.ibm.com</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Jeremy Kerr <jk@ozlabs.org></font><br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">skiboot@lists.ozlabs.org</font><br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">Dan Crowell <dcrowell@us.ibm.com>,
Jeremy Kerr <jk@ozlabs.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">05/25/2017 02:06 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">[PATCH RFC 05/12]
opal-prd: implement basic heuristic for hservice_puts loglevels</font><br><hr noshade><br><br><br><tt><font size=2>Signed-off-by: Jeremy Kerr <jk@ozlabs.org><br>---<br> external/opal-prd/opal-prd.c | 9 ++++++++-<br> 1 file changed, 8 insertions(+), 1 deletion(-)<br><br>diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c<br>index 6ac8a20..c10803d 100644<br>--- a/external/opal-prd/opal-prd.c<br>+++ b/external/opal-prd/opal-prd.c<br>@@ -267,7 +267,14 @@ extern int call_run_command(int argc, const char **argv,
char **o_outString);<br> <br> void hservice_puts(const char *str)<br> {<br>-
pr_log(LOG_INFO, "HBRT: %s", str);<br>+
int priority = LOG_INFO;<br>+<br>+
if (strcasestr(str, "error"))<br>+
priority
= LOG_ERR;<br>+
else if (strcasestr(str, "warn"))<br>+
priority
= LOG_WARNING;<br>+<br>+
pr_log(priority, "HBRT: %s", str);<br> }<br> <br> void hservice_assert(void)<br>-- <br>2.7.4<br><br></font></tt><br><br><BR>