From: Kenneth Heitke Date: Thu, 4 Apr 2019 18:57:45 +0000 (-0600) Subject: nvme: log the error status on Identify Namespace failure X-Git-Tag: v5.4-rc1~945^2~114^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0de579c043c3a2ab60ce75eb6cf4d414becc676;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index b593911..ddb9433 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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; }