From 0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 9 Feb 2016 14:47:22 +0200 Subject: One more fix: use PRIu32 --- src/tbf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tbf.c b/src/tbf.c index 1695960..401e29d 100644 --- a/src/tbf.c +++ b/src/tbf.c @@ -1019,12 +1019,12 @@ log_node(struct node *node, void *data) char kbuf[2*SHA256_LEN+1]; key_to_str(node->key, kbuf); #ifdef DEBUG - syslog(tc->prio, "%d: %p(%p,%p): %zu %s: %s", tc->num, node, + syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s: %s", tc->num, node, node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, kbuf, node->keystr); #else - syslog(tc->prio, "%d: %p(%p,%p): %zu %s", tc->num, node, + syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s", tc->num, node, node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, kbuf); #endif @@ -1051,9 +1051,9 @@ vmod_log_stats(VRT_CTX, VCL_INT prio) struct tree *tree = tbf_get_tree(); tree_compute_stats(tree, &st); tbf_release_tree(&tree); - syslog(prio, "Number of nodes: %zu", st.num_nodes); - syslog(prio, "Number of leaves: %zu", st.num_leaves); - syslog(prio, "Shortest path: %zu", st.shortest_path); - syslog(prio, "Longest path: %zu", st.longest_path); + syslog(prio, "Number of nodes: %"PRIu32, st.num_nodes); + syslog(prio, "Number of leaves: %"PRIu32, st.num_leaves); + syslog(prio, "Shortest path: %"PRIu32, st.shortest_path); + syslog(prio, "Longest path: %"PRIu32, st.longest_path); syslog(prio, "Avg path: %f", st.avg_path); } -- cgit v1.2.1