summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-09 12:47:22 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-02-09 14:48:15 (GMT)
commit0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb (patch) (side-by-side diff)
tree30668ce49fe50174700a115c5ba08dbaad6b5597
parent02cf9eed46759e019b3aca83f691f1ee31be2db5 (diff)
downloadvmod-tbf-0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb.tar.gz
vmod-tbf-0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb.tar.bz2
One more fix: use PRIu32
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/tbf.c12
1 files 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);
}

Return to:

Send suggestions and report system problems to the System administrator.