From: Antonio Ospite Date: Wed, 10 Jun 2015 10:51:38 +0000 (+0200) Subject: am7xxx: rename the "function" argument of log_message() to "function_name" X-Git-Tag: v0.1.6~14 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/44150849bff6b62d2b4e866a2c523ad6944cd464?ds=sidebyside am7xxx: rename the "function" argument of log_message() to "function_name" This express better the meaning of the variable. --- 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, ": ");