libata-eh: decode all taskfile protocols
authorHannes Reinecke <hare@suse.de>
Thu, 14 Jul 2016 00:05:47 +0000 (09:05 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 14 Jul 2016 14:47:23 +0000 (10:47 -0400)
Some taskfile protocol values where missing in ata_eh_link_report().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c

index 7832e5514cb24855c2f29f627ecb1e3b5bf2457a..5688b86b192decbbcd38abfe701829ede9d3f89c 100644 (file)
@@ -2607,9 +2607,12 @@ static void ata_eh_link_report(struct ata_link *link)
                                [DMA_FROM_DEVICE]       = "in",
                        };
                        static const char *prot_str[] = {
+                               [ATA_PROT_UNKNOWN]      = "unknown",
+                               [ATA_PROT_NODATA]       = "nodata",
                                [ATA_PROT_PIO]          = "pio",
                                [ATA_PROT_DMA]          = "dma",
                                [ATA_PROT_NCQ]          = "ncq",
+                               [ATAPI_PROT_NODATA]     = "nodata",
                                [ATAPI_PROT_PIO]        = "pio",
                                [ATAPI_PROT_DMA]        = "dma",
                        };