From ee73105f50969620dc25373ead2a405956c1c4bc Mon Sep 17 00:00:00 2001 From: Leandro Ribeiro Date: Thu, 26 Dec 2019 12:44:06 -0300 Subject: [PATCH] weston-log: rename a confusing parameter name in weston_log_subscription_printf() In the function weston_log_subscription_printf() we have a struct weston_log_subscription parameter that in the .c file is named sub. In the .h, the same parameter is named scope. This is confusing, since its type is not struct weston_log_scope, but struct weston_log_subscription. Rename the parameter in the .h to sub. Signed-off-by: Leandro Ribeiro --- include/libweston/weston-log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libweston/weston-log.h b/include/libweston/weston-log.h index 707cb69f8..8ef2a467f 100644 --- a/include/libweston/weston-log.h +++ b/include/libweston/weston-log.h @@ -89,7 +89,7 @@ weston_log_scope_printf(struct weston_log_scope *scope, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); void -weston_log_subscription_printf(struct weston_log_subscription *scope, +weston_log_subscription_printf(struct weston_log_subscription *sub, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); void