Commit 37301a55 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

libata: be less verbose about hpa

There's no reason to print out hpa related messages when HPA is not
active.  Kill the unconditional message and add a warning message
which is printed if HPA size is smaller than the current size.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 8af500bc
...@@ -983,11 +983,6 @@ static u64 ata_hpa_resize(struct ata_device *dev) ...@@ -983,11 +983,6 @@ static u64 ata_hpa_resize(struct ata_device *dev)
else else
hpa_sectors = ata_read_native_max_address(dev); hpa_sectors = ata_read_native_max_address(dev);
/* if no hpa, both should be equal */
ata_dev_printk(dev, KERN_INFO, "%s 1: sectors = %lld, "
"hpa_sectors = %lld\n",
__FUNCTION__, (long long)sectors, (long long)hpa_sectors);
if (hpa_sectors > sectors) { if (hpa_sectors > sectors) {
ata_dev_printk(dev, KERN_INFO, ata_dev_printk(dev, KERN_INFO,
"Host Protected Area detected:\n" "Host Protected Area detected:\n"
...@@ -1009,7 +1004,11 @@ static u64 ata_hpa_resize(struct ata_device *dev) ...@@ -1009,7 +1004,11 @@ static u64 ata_hpa_resize(struct ata_device *dev)
return hpa_sectors; return hpa_sectors;
} }
} }
} } else if (hpa_sectors < sectors)
ata_dev_printk(dev, KERN_WARNING, "%s 1: hpa sectors (%lld) "
"is smaller than sectors (%lld)\n", __FUNCTION__,
(long long)hpa_sectors, (long long)sectors);
return sectors; return sectors;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment