From 45a8892e67ad5f2aae92cb28e921e358fb8b675a Mon Sep 17 00:00:00 2001 From: Richard Mudgett <rmudgett@digium.com> Date: Thu, 14 Mar 2019 11:53:13 -0500 Subject: [PATCH] taskprocessor.c: Fix printf type mismatch A size_t is not always an unsigned long. * Use the %zu format specifier in the ast_cli() printf format string since AST_VECTOR_SIZE() returns a size_t value. Change-Id: Ib102dd36bbe6c2a7a4ce6870ae9110d978dd7e98 --- main/taskprocessor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 9ebbf390e5..f4ce6bb4ae 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -714,7 +714,7 @@ static char *cli_subsystem_alert_report(struct ast_cli_entry *e, int cmd, struct ast_cli(a->fd, FMT_FIELDS_SUBSYSTEM, alert->subsystem, alert->alert_count); } - ast_cli(a->fd, "\n%lu subsystems\n\n", AST_VECTOR_SIZE(&sorted_subsystems)); + ast_cli(a->fd, "\n%zu subsystems\n\n", AST_VECTOR_SIZE(&sorted_subsystems)); AST_VECTOR_CALLBACK_VOID(&sorted_subsystems, ast_free); AST_VECTOR_FREE(&sorted_subsystems); -- GitLab