Skip to content

Commit e7b08af

Browse files
authored
DISPATCH-2368: chore(build): fix qd_log formatting placeholder (#1739)
It's unexpected that compilers can trace the string as it flows to printf, as there are no hints in the code, but apparently they can do this nowadays. ``` error: format specifies type 'long long' but the argument has type 'long' [-Werror,-Wformat] ```
1 parent 2fd61a3 commit e7b08af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router_core/modules/test_hooks/core_test_hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static void _do_send(test_client_t *tc)
560560
++tc->counter;
561561
--tc->credit;
562562
qd_log(tc->module->core->log, QD_LOG_TRACE,
563-
"client test message sent id=%"PRIi64" c=%d", tc->counter - 1, tc->credit);
563+
"client test message sent id=%ld c=%d", tc->counter - 1, tc->credit);
564564
}
565565
}
566566

0 commit comments

Comments
 (0)