From: Mauro Carvalho Chehab Date: Mon, 18 Nov 2024 15:09:18 +0000 (+0100) Subject: rasdaemon: use __func__ instead of the name of the function X-Git-Tag: v0.8.2~16 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eafd51d859a91fcee4509dd7abab3c449b4830ab;p=users%2Fmchehab%2Frasdaemon.git rasdaemon: use __func__ instead of the name of the function Solve some checkpatch warnings about not usint __func__ at the rasdaemon logs. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/ras-events.c b/ras-events.c index ea9ecc8..5d8118a 100644 --- a/ras-events.c +++ b/ras-events.c @@ -110,7 +110,8 @@ static int wait_access(char *path, int ms) usleep(1000); } - log(ALL, LOG_WARNING, "wait_access() failed, %s not created in %d ms\n", path, ms); + log(ALL, LOG_WARNING, "%s failed, %s not created in %d ms\n", + __func__, path, ms); return -1; } diff --git a/ras-page-isolation.c b/ras-page-isolation.c index b747d77..aa1dcf8 100644 --- a/ras-page-isolation.c +++ b/ras-page-isolation.c @@ -288,7 +288,6 @@ void ras_row_account_init(void) { row_offline_init(); row_isolation_init(); - log(TERM, LOG_INFO, "ras_row_account_init done\n"); } void ras_page_account_init(void) @@ -530,12 +529,14 @@ static int parse_value(const char *str, const char *anchor_str, int value_base, tmp = (int)strtol(start, &endptr, value_base); if (errno != 0) { - log(TERM, LOG_ERR, "parse_value error, start: %s, value_base: %d, errno: %d\n", start, value_base, errno); + log(TERM, LOG_ERR, "%s error, start: %s, value_base: %d, errno: %d\n", + __func__, start, value_base, errno); return 1; } if (endptr == start) { - log(TERM, LOG_ERR, "parse_value error, start: %s, value_base: %d\n", start, value_base); + log(TERM, LOG_ERR, "%s error, start: %s, value_base: %d\n", + __func__, start, value_base); return 1; } *value = tmp;