[trivial] prd: Log unsupported message type

Message ID 20171129130550.12361-1-hegdevasant@linux.vnet.ibm.com
State New
Headers show
Series
  • [trivial] prd: Log unsupported message type
Related show

Commit Message

Vasant Hegde Nov. 29, 2017, 1:05 p.m.
Useful for debugging.

CC: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 hw/prd.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch

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;
 	}