Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97f1d8cd authored by Vasundhara Volam's avatar Vasundhara Volam Committed by David S. Miller
Browse files

be2net: Modify error message to incorporate subsystem



Modify IOCTL error message to print subsystem also.

Signed-off-by: default avatarVasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b7e5887e
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -122,15 +122,15 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
			goto done;

		if (compl_status == MCC_STATUS_UNAUTHORIZED_REQUEST) {
			dev_warn(&adapter->pdev->dev, "This domain(VM) is not "
				"permitted to execute this cmd (opcode %d)\n",
				opcode);
			dev_warn(&adapter->pdev->dev,
				 "opcode %d-%d is not permitted\n",
				 opcode, subsystem);
		} else {
			extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) &
					CQE_STATUS_EXTD_MASK;
			dev_err(&adapter->pdev->dev, "Cmd (opcode %d) failed:"
				"status %d, extd-status %d\n",
				opcode, compl_status, extd_status);
			dev_err(&adapter->pdev->dev,
				"opcode %d-%d failed:status %d-%d\n",
				opcode, subsystem, compl_status, extd_status);
		}
	}
done: