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 16:48:15 +0200 |
commit | 0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb (patch) | |
tree | 30668ce49fe50174700a115c5ba08dbaad6b5597 | |
parent | 02cf9eed46759e019b3aca83f691f1ee31be2db5 (diff) | |
download | vmod-tbf-0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb.tar.gz vmod-tbf-0d1cc96f3b478393a6a1b3c99fe5ebcca26cadcb.tar.bz2 |
One more fix: use PRIu32
-rw-r--r-- | src/tbf.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1019,12 +1019,12 @@ log_node(struct node *node, void *data) | |||
1019 | char kbuf[2*SHA256_LEN+1]; | 1019 | char kbuf[2*SHA256_LEN+1]; |
1020 | key_to_str(node->key, kbuf); | 1020 | key_to_str(node->key, kbuf); |
1021 | #ifdef DEBUG | 1021 | #ifdef DEBUG |
1022 | syslog(tc->prio, "%d: %p(%p,%p): %zu %s: %s", tc->num, node, | 1022 | syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s: %s", tc->num, node, |
1023 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, | 1023 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, |
1024 | kbuf, | 1024 | kbuf, |
1025 | node->keystr); | 1025 | node->keystr); |
1026 | #else | 1026 | #else |
1027 | syslog(tc->prio, "%d: %p(%p,%p): %zu %s", tc->num, node, | 1027 | syslog(tc->prio, "%d: %p(%p,%p): %"PRIu32" %s", tc->num, node, |
1028 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, | 1028 | node->child[CHILD_LEFT], node->child[CHILD_RIGHT], node->ord, |
1029 | kbuf); | 1029 | kbuf); |
1030 | #endif | 1030 | #endif |
@@ -1051,9 +1051,9 @@ vmod_log_stats(VRT_CTX, VCL_INT prio) | |||
1051 | struct tree *tree = tbf_get_tree(); | 1051 | struct tree *tree = tbf_get_tree(); |
1052 | tree_compute_stats(tree, &st); | 1052 | tree_compute_stats(tree, &st); |
1053 | tbf_release_tree(&tree); | 1053 | tbf_release_tree(&tree); |
1054 | syslog(prio, "Number of nodes: %zu", st.num_nodes); | 1054 | syslog(prio, "Number of nodes: %"PRIu32, st.num_nodes); |
1055 | syslog(prio, "Number of leaves: %zu", st.num_leaves); | 1055 | syslog(prio, "Number of leaves: %"PRIu32, st.num_leaves); |
1056 | syslog(prio, "Shortest path: %zu", st.shortest_path); | 1056 | syslog(prio, "Shortest path: %"PRIu32, st.shortest_path); |
1057 | syslog(prio, "Longest path: %zu", st.longest_path); | 1057 | syslog(prio, "Longest path: %"PRIu32, st.longest_path); |
1058 | syslog(prio, "Avg path: %f", st.avg_path); | 1058 | syslog(prio, "Avg path: %f", st.avg_path); |
1059 | } | 1059 | } |