diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-09 14:47:22 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-09 14:47:22 +0200 |
commit | 6f873ac382cee705378972332c6f8eac4f166e3d (patch) | |
tree | 542533346af4cf24ec91d47dcf6ab98177f3401c | |
parent | ac197363fa8b345e464f4179c2a51fd37e89f1eb (diff) | |
download | vmod-tbf-6f873ac382cee705378972332c6f8eac4f166e3d.tar.gz vmod-tbf-6f873ac382cee705378972332c6f8eac4f166e3d.tar.bz2 |
One more fix: use PRIu32
-rw-r--r-- | src/tbf.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1008,12 +1008,12 @@ log_node(struct node *node, void *data) | |||
1008 | char kbuf[2*SHA256_LEN+1]; | 1008 | char kbuf[2*SHA256_LEN+1]; |
1009 | key_to_str(node->key, kbuf); | 1009 | key_to_str(node->key, kbuf); |
1010 | #ifdef DEBUG | 1010 | #ifdef DEBUG |
1011 | syslog(tc->prio, "%d: %p(%p,%p): %zu %s: %s", tc->num, node, | 1011 | syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s: %s", tc->num, node, |
1012 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, | 1012 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, |
1013 | kbuf, | 1013 | kbuf, |
1014 | node->keystr); | 1014 | node->keystr); |
1015 | #else | 1015 | #else |
1016 | syslog(tc->prio, "%d: %p(%p,%p): %zu %s", tc->num, node, | 1016 | syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s", tc->num, node, |
1017 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, | 1017 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, |
1018 | kbuf); | 1018 | kbuf); |
1019 | #endif | 1019 | #endif |
@@ -1040,9 +1040,9 @@ vmod_log_stats(MOD_CTX ctx, VCL_INT prio) | |||
1040 | struct tree *tree = tbf_get_tree(); | 1040 | struct tree *tree = tbf_get_tree(); |
1041 | tree_compute_stats(tree, &st); | 1041 | tree_compute_stats(tree, &st); |
1042 | tbf_release_tree(&tree); | 1042 | tbf_release_tree(&tree); |
1043 | syslog(prio, "Number of nodes: %zu", st.num_nodes); | 1043 | syslog(prio, "Number of nodes: %"PRIu32, st.num_nodes); |
1044 | syslog(prio, "Number of leaves: %zu", st.num_leaves); | 1044 | syslog(prio, "Number of leaves: %"PRIu32, st.num_leaves); |
1045 | syslog(prio, "Shortest path: %zu", st.shortest_path); | 1045 | syslog(prio, "Shortest path: %"PRIu32, st.shortest_path); |
1046 | syslog(prio, "Longest path: %zu", st.longest_path); | 1046 | syslog(prio, "Longest path: %"PRIu32, st.longest_path); |
1047 | syslog(prio, "Avg path: %f", st.avg_path); | 1047 | syslog(prio, "Avg path: %f", st.avg_path); |
1048 | } | 1048 | } |