]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: improve an error message on Identify failure
authorMinwoo Im <minwoo.im.dev@gmail.com>
Mon, 30 Nov 2020 12:47:46 +0000 (21:47 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 1 Dec 2020 19:36:37 +0000 (20:36 +0100)
commit8dc745590c7d6bc0db1cbb865d50edc57e6f121f
tree8ec4f46c5afb9104e0c28b2d691ae18328cd8fb4
parentdd087ec9b51b407ad5a1a98eb273f573b6daf901
nvme: improve an error message on Identify failure

Add the namespace ID to the error message when the Identify command used
to retrieve the Namespace Identification Descriptor list fails.

This avoids rather useless and duplicative messages like the following:
[    1.321031] nvme nvme0: Identify Descriptors failed (16386)
[    1.321948] nvme nvme0: Identify Descriptors failed (16386)
[    1.322872] nvme nvme0: Identify Descriptors failed (16386)
[    1.323775] nvme nvme0: Identify Descriptors failed (16386)
[    1.324687] nvme nvme0: Identify Descriptors failed (16386)
...

Also, print the nvme status code in hexadecimal rather than decimal
format rather for better readability.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c