From: Tejun Heo Date: Fri, 1 Jul 2011 13:12:09 +0000 (+0200) Subject: libata: report link resume failure as KERN_WARNING instead of ERR X-Git-Tag: v3.12-rc1~5275^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38941c9521e9ee6064b402dd460ac9dd2df89890;p=kernel%2Fkernel-generic.git libata: report link resume failure as KERN_WARNING instead of ERR Link resume failure in itself isn't an error condition and may happen regularly depending on hardware configuration. Reporting it as KERN_ERR makes the condition unnecessarily prominent (e.g. reported during boot). Use KERN_WARNING instead. Signed-off-by: Tejun Heo Reported-by: David Shaw Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 83a2929..4a3a5ae 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3534,7 +3534,7 @@ int sata_link_resume(struct ata_link *link, const unsigned long *params, } while ((scontrol & 0xf0f) != 0x300 && --tries); if ((scontrol & 0xf0f) != 0x300) { - ata_link_err(link, "failed to resume link (SControl %X)\n", + ata_link_warn(link, "failed to resume link (SControl %X)\n", scontrol); return 0; }