ata: libata: sanitize ATA_HORKAGE_DUMP_ID
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:20:28 +0000 (08:20 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 4 Jan 2022 11:00:53 +0000 (20:00 +0900)
With moving ata_dev_dbg() over to dynamic debugging ATA_HORKAGE_DUMP_ID
will now print out the raw IDENTIFY data without a header unless
explicitly enable via dyndebug.
So move the logging level up to INFO and have the header printed
always.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c

index d316fbf13309153e4098310bf321794530cb6049..73020a6d125e2d2ffe7f8b5920a98e1abd164eb7 100644 (file)
@@ -1848,10 +1848,10 @@ retry:
        }
 
        if (dev->horkage & ATA_HORKAGE_DUMP_ID) {
-               ata_dev_dbg(dev, "dumping IDENTIFY data, "
+               ata_dev_info(dev, "dumping IDENTIFY data, "
                            "class=%d may_fallback=%d tried_spinup=%d\n",
                            class, may_fallback, tried_spinup);
-               print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET,
+               print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET,
                               16, 2, id, ATA_ID_WORDS * sizeof(*id), true);
        }