[Asterisk-code-review] taskprocessor.c: Fix printf type mismatch (...asterisk[16])

Friendly Automation asteriskteam at digium.com
Fri Mar 15 09:33:20 CDT 2019


Friendly Automation has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/11152 )

Change subject: taskprocessor.c: Fix printf type mismatch
......................................................................

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
---
M main/taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  mattf: Looks good to me, approved; Verified
  Friendly Automation: Approved for Submit



diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 9ebbf39..f4ce6bb 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -714,7 +714,7 @@
 		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);

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11152
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ib102dd36bbe6c2a7a4ce6870ae9110d978dd7e98
Gerrit-Change-Number: 11152
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: mattf <creslin at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190315/380723a0/attachment.html>


More information about the asterisk-code-review mailing list