Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.16.0
-
None
Description
*** 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 }}}