• Minwoo Im's avatar
    nvme: improve an error message on Identify failure · aa9d7295
    Minwoo Im authored
    
    
    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: default avatarMinwoo Im <minwoo.im.dev@gmail.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    aa9d7295
core.c 121 KB