From: Aaro Koskinen Date: Thu, 16 Apr 2015 19:45:54 +0000 (-0700) Subject: rtc: hctosys: use function name in the error log X-Git-Tag: firefly_0821_release~176^2~1948^2~79 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=521fca18e828cddc94535a1ea5ac33460f1de679;p=firefly-linux-kernel-4.4.55.git rtc: hctosys: use function name in the error log Use function name in the error log instead of __FILE__. Signed-off-by: Aaro Koskinen Cc: Alexandre Belloni Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c index fb4251de7ce1..91fb5f3c1051 100644 --- a/drivers/rtc/hctosys.c +++ b/drivers/rtc/hctosys.c @@ -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; }