[Asterisk-code-review] stasis: Use format specifier for size_t. (asterisk[17])

Joshua Colp asteriskteam at digium.com
Mon Feb 17 11:25:21 CST 2020


Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13796 )

Change subject: stasis: Use format specifier for size_t.
......................................................................

stasis: Use format specifier for size_t.

Change-Id: Ic9b4afcc5398e7f46314419fc3c90433d818e35c
---
M main/stasis.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Joshua Colp: Approved for Submit



diff --git a/main/stasis.c b/main/stasis.c
index 67ed9a6..e901cbd 100644
--- a/main/stasis.c
+++ b/main/stasis.c
@@ -2439,8 +2439,8 @@
 
 	ast_cli(a->fd, "Name: %s\n", topic->name);
 	ast_cli(a->fd, "Detail: %s\n", topic->detail);
-	ast_cli(a->fd, "Subscribers count: %lu\n", AST_VECTOR_SIZE(&topic->subscribers));
-	ast_cli(a->fd, "Forwarding topic count: %lu\n", AST_VECTOR_SIZE(&topic->upstream_topics));
+	ast_cli(a->fd, "Subscribers count: %zu\n", AST_VECTOR_SIZE(&topic->subscribers));
+	ast_cli(a->fd, "Forwarding topic count: %zu\n", AST_VECTOR_SIZE(&topic->upstream_topics));
 	ast_format_duration_hh_mm_ss(ast_tvnow().tv_sec - topic->creationtime->tv_sec, print_time, sizeof(print_time));
 	ast_cli(a->fd, "Duration time: %s\n", print_time);
 

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

Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: Ic9b4afcc5398e7f46314419fc3c90433d818e35c
Gerrit-Change-Number: 13796
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200217/dd5b0c6c/attachment.html>


More information about the asterisk-code-review mailing list