aboutsummaryrefslogtreecommitdiff
path: root/external/opal-prd
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2015-10-21 14:44:04 +1030
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-10-23 14:30:37 +1100
commit22f0fc39a7f9ada9d0487848e4758c4fe45bafed (patch)
tree04b2e83519fc196251f3eaa04d16e58b935fa7c8 /external/opal-prd
parent7dd85992fbc4c8b309f255225613160e2e8c4722 (diff)
downloadskiboot-22f0fc39a7f9ada9d0487848e4758c4fe45bafed.zip
skiboot-22f0fc39a7f9ada9d0487848e4758c4fe45bafed.tar.gz
skiboot-22f0fc39a7f9ada9d0487848e4758c4fe45bafed.tar.bz2
opal-prd: Display messages at startup and shutdown
On a system the PRD daemon was starting without a PNOR path, and it was hard to diagnose what had happened. These messages should help in that case. Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/opal-prd')
-rw-r--r--external/opal-prd/opal-prd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c
index 83c5cb5..0004b3d 100644
--- a/external/opal-prd/opal-prd.c
+++ b/external/opal-prd/opal-prd.c
@@ -1499,6 +1499,8 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
/* log to syslog */
pr_log_daemon_init();
+ pr_debug("CTRL: Starting PRD daemon\n");
+
ctx->fd = -1;
ctx->socket = -1;
@@ -1560,6 +1562,8 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
pr_log(LOG_ERR, "PNOR: Failed to open pnor: %m");
goto out_close;
}
+ } else {
+ pr_log(LOG_WARNING,"PNOR: No path provided, access will fail\n");
}
ipmi_init(ctx);
@@ -1585,6 +1589,7 @@ static int run_prd_daemon(struct opal_prd_ctx *ctx)
rc = 0;
out_close:
+ pr_debug("CTRL: stopping PRD daemon\n");
pnor_close(&ctx->pnor);
if (ctx->fd != -1)
close(ctx->fd);