summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-09 12:47:22 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-02-09 12:47:22 (GMT)
commit6f873ac382cee705378972332c6f8eac4f166e3d (patch) (side-by-side diff)
tree542533346af4cf24ec91d47dcf6ab98177f3401c
parentac197363fa8b345e464f4179c2a51fd37e89f1eb (diff)
downloadvmod-tbf-6f873ac382cee705378972332c6f8eac4f166e3d.tar.gz
vmod-tbf-6f873ac382cee705378972332c6f8eac4f166e3d.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 a058f92..7ac0ca3 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -1008,12 +1008,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
@@ -1040,9 +1040,9 @@ vmod_log_stats(MOD_CTX 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.