aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2017-11-30 10:41:33 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-14 23:58:38 -0600
commit0f9a776aa72f75b1983c9d6cd4dd8bf7bef0883a (patch)
tree00a51ca930168c5c1b9de45e18d21582ffff22e6 /hw
parent781b10633945df32fa2292ee8b196c74f8ef2c7c (diff)
downloadskiboot-0f9a776aa72f75b1983c9d6cd4dd8bf7bef0883a.zip
skiboot-0f9a776aa72f75b1983c9d6cd4dd8bf7bef0883a.tar.gz
skiboot-0f9a776aa72f75b1983c9d6cd4dd8bf7bef0883a.tar.bz2
prd: Log unsupported message type
Useful for debugging. Sample output: [29155.157050283,7] PRD: Unsupported prd message type : 0xc CC: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Acked-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/prd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/prd.c b/hw/prd.c
index ad84dbd..c522019 100644
--- a/hw/prd.c
+++ b/hw/prd.c
@@ -415,6 +415,8 @@ static int prd_msg_handle_firmware_req(struct opal_prd_msg *msg)
rc = 0;
break;
default:
+ prlog(PR_DEBUG, "PRD: Unsupported fw_request type : 0x%llx\n",
+ be64_to_cpu(fw_req->type));
rc = -ENOSYS;
}
@@ -470,6 +472,8 @@ static int64_t opal_prd_msg(struct opal_prd_msg *msg)
msg->fsp_occ_reset_status.status);
break;
default:
+ prlog(PR_DEBUG, "PRD: Unsupported prd message type : 0x%x\n",
+ msg->hdr.type);
rc = OPAL_UNSUPPORTED;
}