<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10826">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stasic.c: Fix printf format type mismatches with arguments.<br><br>An int64_t is not necessarily the same size as a long.<br><br>Change-Id: Ic090a070e9dc4ca650ebdb9c01ed50a581289962<br>---<br>M main/stasis.c<br>1 file changed, 6 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/10826/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/stasis.c b/main/stasis.c</span><br><span>index 8793b2b..3d72dc6 100644</span><br><span>--- a/main/stasis.c</span><br><span>+++ b/main/stasis.c</span><br><span>@@ -2134,7 +2134,7 @@</span><br><span>        iter = ao2_iterator_init(subscription_statistics, 0);</span><br><span>        while ((statistics = ao2_iterator_next(&iter))) {</span><br><span>                ast_cli(a->fd, FMT_FIELDS, statistics->uniqueid, statistics->messages_dropped, statistics->messages_passed,</span><br><span style="color: hsl(0, 100%, 40%);">-                 statistics->lowest_time_invoked, statistics->highest_time_invoked);</span><br><span style="color: hsl(120, 100%, 40%);">+                     (long) statistics->lowest_time_invoked, (long) statistics->highest_time_invoked);</span><br><span>              dropped += statistics->messages_dropped;</span><br><span>          passed += statistics->messages_passed;</span><br><span>            ao2_ref(statistics, -1);</span><br><span>@@ -2221,8 +2221,8 @@</span><br><span>     ast_cli(a->fd, "Number of messages passed to subscriber callback: %d\n", statistics->messages_passed);</span><br><span>       ast_cli(a->fd, "Using mailbox to queue messages: %s\n", statistics->uses_mailbox ? "Yes" : "No");</span><br><span>        ast_cli(a->fd, "Using stasis threadpool for handling messages: %s\n", statistics->uses_threadpool ? "Yes" : "No");</span><br><span style="color: hsl(0, 100%, 40%);">-  ast_cli(a->fd, "Lowest amount of time (in milliseconds) spent invoking message: %ld\n", statistics->lowest_time_invoked);</span><br><span style="color: hsl(0, 100%, 40%);">-       ast_cli(a->fd, "Highest amount of time (in milliseconds) spent invoking message: %ld\n", statistics->highest_time_invoked);</span><br><span style="color: hsl(120, 100%, 40%);">+   ast_cli(a->fd, "Lowest amount of time (in milliseconds) spent invoking message: %ld\n", (long) statistics->lowest_time_invoked);</span><br><span style="color: hsl(120, 100%, 40%);">+      ast_cli(a->fd, "Highest amount of time (in milliseconds) spent invoking message: %ld\n", (long) statistics->highest_time_invoked);</span><br><span> </span><br><span>       ao2_lock(statistics);</span><br><span>        if (statistics->highest_time_message_type) {</span><br><span>@@ -2270,7 +2270,7 @@</span><br><span>      iter = ao2_iterator_init(topic_statistics, 0);</span><br><span>       while ((statistics = ao2_iterator_next(&iter))) {</span><br><span>                ast_cli(a->fd, FMT_FIELDS, statistics->name, statistics->messages_not_dispatched, statistics->messages_dispatched,</span><br><span style="color: hsl(0, 100%, 40%);">-                  statistics->lowest_time_dispatched, statistics->highest_time_dispatched);</span><br><span style="color: hsl(120, 100%, 40%);">+                       (long) statistics->lowest_time_dispatched, (long) statistics->highest_time_dispatched);</span><br><span>                not_dispatched += statistics->messages_not_dispatched;</span><br><span>            dispatched += statistics->messages_dispatched;</span><br><span>            ao2_ref(statistics, -1);</span><br><span>@@ -2351,8 +2351,8 @@</span><br><span>     ast_cli(a->fd, "Topic: %s\n", statistics->name);</span><br><span>     ast_cli(a->fd, "Number of messages published that went to no subscriber: %d\n", statistics->messages_not_dispatched);</span><br><span>        ast_cli(a->fd, "Number of messages that went to at least one subscriber: %d\n", statistics->messages_dispatched);</span><br><span style="color: hsl(0, 100%, 40%);">-       ast_cli(a->fd, "Lowest amount of time (in milliseconds) spent dispatching message: %ld\n", statistics->lowest_time_dispatched);</span><br><span style="color: hsl(0, 100%, 40%);">- ast_cli(a->fd, "Highest amount of time (in milliseconds) spent dispatching messages: %ld\n", statistics->highest_time_dispatched);</span><br><span style="color: hsl(120, 100%, 40%);">+    ast_cli(a->fd, "Lowest amount of time (in milliseconds) spent dispatching message: %ld\n", (long) statistics->lowest_time_dispatched);</span><br><span style="color: hsl(120, 100%, 40%);">+        ast_cli(a->fd, "Highest amount of time (in milliseconds) spent dispatching messages: %ld\n", (long) statistics->highest_time_dispatched);</span><br><span>    ast_cli(a->fd, "Number of subscribers: %d\n", statistics->subscriber_count);</span><br><span> </span><br><span>     ao2_ref(statistics, -1);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10826">change 10826</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10826"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic090a070e9dc4ca650ebdb9c01ed50a581289962 </div>
<div style="display:none"> Gerrit-Change-Number: 10826 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>