[Skiboot] [trivial PATCH] prd: Log unsupported message type
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Thu Nov 30 00:05:50 AEDT 2017
Useful for debugging.
CC: Jeremy Kerr <jk at ozlabs.org>
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
hw/prd.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/prd.c b/hw/prd.c
index 4db92eb..cbe8ce5 100644
--- a/hw/prd.c
+++ b/hw/prd.c
@@ -389,6 +389,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;
}
@@ -432,6 +434,8 @@ static int64_t opal_prd_msg(struct opal_prd_msg *msg)
rc = prd_msg_handle_firmware_req(msg);
break;
default:
+ prlog(PR_DEBUG, "PRD: Unsupported prd message type 0x%x\n",
+ msg->hdr.type);
rc = OPAL_UNSUPPORTED;
}
--
2.9.3
More information about the Skiboot
mailing list