Skip to content

Commit d0de579

Browse files
Kenneth HeitkeChristoph Hellwig
authored andcommitted
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: Kenneth Heitke <kenneth.heitke@intel.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 013a63e commit d0de579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nvme/host/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ static struct nvme_id_ns *nvme_identify_ns(struct nvme_ctrl *ctrl,
11051105

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

0 commit comments

Comments
 (0)