Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: libata: sanitize ATA_HORKAGE_DUMP_ID

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>

authored by

Hannes Reinecke and committed by
Damien Le Moal
4baa5745 6044f3c4

+2 -2
+2 -2
drivers/ata/libata-core.c
··· 1848 1848 } 1849 1849 1850 1850 if (dev->horkage & ATA_HORKAGE_DUMP_ID) { 1851 - ata_dev_dbg(dev, "dumping IDENTIFY data, " 1851 + ata_dev_info(dev, "dumping IDENTIFY data, " 1852 1852 "class=%d may_fallback=%d tried_spinup=%d\n", 1853 1853 class, may_fallback, tried_spinup); 1854 - print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 1854 + print_hex_dump(KERN_INFO, "", DUMP_PREFIX_OFFSET, 1855 1855 16, 2, id, ATA_ID_WORDS * sizeof(*id), true); 1856 1856 } 1857 1857