From: Robert Richter Date: Tue, 3 Jan 2023 21:01:50 +0000 (+0100) Subject: cxl/pci: Show opcode in debug messages when sending a command X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=852db33c6c180a48268eca52e25b267ed32de3ab;p=linux.git cxl/pci: Show opcode in debug messages when sending a command For debugging it is very helpful to see which commands are sent. Add it to the debug message. Signed-off-by: Robert Richter Link: https://lore.kernel.org/r/20230103210151.1126873-1-rrichter@amd.com Signed-off-by: Dan Williams --- diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c index 3a66aadb4df05..2bbebbc7e0320 100644 --- a/drivers/cxl/pci.c +++ b/drivers/cxl/pci.c @@ -160,7 +160,7 @@ static int __cxl_pci_mbox_send_cmd(struct cxl_dev_state *cxlds, writeq(cmd_reg, cxlds->regs.mbox + CXLDEV_MBOX_CMD_OFFSET); /* #4 */ - dev_dbg(dev, "Sending command\n"); + dev_dbg(dev, "Sending command: 0x%04x\n", mbox_cmd->opcode); writel(CXLDEV_MBOX_CTRL_DOORBELL, cxlds->regs.mbox + CXLDEV_MBOX_CTRL_OFFSET);