rtc: hctosys: use function name in the error log
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 16 Apr 2015 19:45:54 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:01 +0000 (09:04 -0400)
Use function name in the error log instead of __FILE__.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/hctosys.c

index fb4251de7ce1fda2ae7cfe51dc7a1c31d1696f00..91fb5f3c1051e6dbcfcedb54436ee97361a0a5eb 100644 (file)
@@ -33,7 +33,7 @@ static int __init rtc_hctosys(void)
 
        if (rtc == NULL) {
                pr_info("%s: unable to open rtc device (%s)\n",
-                       __FILE__, CONFIG_RTC_HCTOSYS_DEVICE);
+                       __func__, CONFIG_RTC_HCTOSYS_DEVICE);
                goto err_open;
        }