rtc: hctosys: use function name in the error log
authorAaro Koskinen <[email protected]>
Thu, 16 Apr 2015 19:45:54 +0000 (12:45 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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;
        }