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

Commit d0de579c authored by Kenneth Heitke's avatar Kenneth Heitke Committed by Christoph Hellwig
Browse files

nvme: log the error status on Identify Namespace failure



Identify Namespace failures are logged as a warning but there is not
an indication of the cause for the failure. Update the log message to
include the error status.

Signed-off-by: default avatarKenneth Heitke <kenneth.heitke@intel.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 013a63ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1105,7 +1105,7 @@ static struct nvme_id_ns *nvme_identify_ns(struct nvme_ctrl *ctrl,

	error = nvme_submit_sync_cmd(ctrl->admin_q, &c, id, sizeof(*id));
	if (error) {
		dev_warn(ctrl->device, "Identify namespace failed\n");
		dev_warn(ctrl->device, "Identify namespace failed (%d)\n", error);
		kfree(id);
		return NULL;
	}