Ken Giusti created DISPATCH-2107:
------------------------------------

             Summary: [libwebsockets] coverity error
                 Key: DISPATCH-2107
                 URL: https://issues.apache.org/jira/browse/DISPATCH-2107
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Protocol Adaptors
    Affects Versions: 1.16.0
            Reporter: Ken Giusti
             Fix For: 1.17.0


{{*** CID 370603:  API usage errors  (PRINTF_ARGS)}}
{{ /home/kgiusti/work/dispatch/qpid-dispatch/src/http-libwebsockets.c: 698 in 
callback_metrics()}}
{{ 692                 }}}
{{ 693             }}}
{{ 694     }}
{{ 695             int alloc_cur = 0;}}
{{ 696             while (alloc_cur < allocator_metrics_length) {}}
{{ 697                 if (write_allocator_metric(&position, end, 
&allocator_metrics[alloc_cur])) {}}
{{ >>>     CID 370603:  API usage errors  (PRINTF_ARGS)}}
{{ >>>     Argument "alloc_cur" to format specifier "%lu" was expected to have 
type "unsigned long" but has type "int".}}
{{ 698                     qd_log(hs->log, QD_LOG_DEBUG, "wrote allocator 
metric %lu of %lu", alloc_cur, allocator_metrics_length);}}
{{ 699                     alloc_cur++;}}
{{ 700                 } else {}}
{{ 701                     qd_log(hs->log, QD_LOG_WARNING, "insufficient space 
in buffer");}}
{{ 702                     break;}}
{{ 703                 }}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to