From 44150849bff6b62d2b4e866a2c523ad6944cd464 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 10 Jun 2015 12:51:38 +0200 Subject: [PATCH 1/1] am7xxx: rename the "function" argument of log_message() to "function_name" This express better the meaning of the variable. --- src/am7xxx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/am7xxx.c b/src/am7xxx.c index d619f89..c18e202 100644 --- a/src/am7xxx.c +++ b/src/am7xxx.c @@ -53,7 +53,7 @@ static void log_message(am7xxx_context *ctx, int level, - const char *function, + const char *function_name, int line, const char *fmt, ...) __attribute__ ((format (printf, 5, 6))); @@ -628,7 +628,7 @@ static int send_command(am7xxx_device *dev, am7xxx_packet_type type) * set up */ static void log_message(am7xxx_context *ctx, int level, - const char *function, + const char *function_name, int line, const char *fmt, ...) @@ -636,8 +636,8 @@ static void log_message(am7xxx_context *ctx, va_list ap; if (level == AM7XXX_LOG_FATAL || (ctx && level <= ctx->log_level)) { - if (function) { - fprintf(stderr, "%s", function); + if (function_name) { + fprintf(stderr, "%s", function_name); if (line) fprintf(stderr, "[%d]", line); fprintf(stderr, ": "); -- 2.1.4