This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/main by this push:
new e7b08afa DISPATCH-2368: chore(build): fix `qd_log` formatting
placeholder (#1739)
e7b08afa is described below
commit e7b08afa8f7d662478ea08cd41424942ebb417d3
Author: Jiri Daněk <[email protected]>
AuthorDate: Mon Jan 13 12:33:48 2025 +0100
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]
```
---
src/router_core/modules/test_hooks/core_test_hooks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/router_core/modules/test_hooks/core_test_hooks.c
b/src/router_core/modules/test_hooks/core_test_hooks.c
index 5a68b6a4..af91a78f 100644
--- a/src/router_core/modules/test_hooks/core_test_hooks.c
+++ b/src/router_core/modules/test_hooks/core_test_hooks.c
@@ -560,7 +560,7 @@ static void _do_send(test_client_t *tc)
++tc->counter;
--tc->credit;
qd_log(tc->module->core->log, QD_LOG_TRACE,
- "client test message sent id=%"PRIi64" c=%d", tc->counter - 1,
tc->credit);
+ "client test message sent id=%ld c=%d", tc->counter - 1,
tc->credit);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]