Skip to content
Snippets Groups Projects
Commit eefdb9ee authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Using %d to printf an enum may not be by-the-standard okay.

parent 74810f95
No related branches found
No related tags found
No related merge requests found
......@@ -457,7 +457,7 @@ configure_proxy(managed_proxy_t *mp)
mp->conf_state = PT_PROTO_BROKEN;
} else { /* unknown stream status */
log_warn(LD_BUG, "Unknown stream status '%d' while configuring managed "
"proxy '%s'.", r, mp->argv[0]);
"proxy '%s'.", (int)r, mp->argv[0]);
}
/* if the proxy finished configuring, exit the loop. */
......@@ -591,7 +591,7 @@ handle_finished_proxy(managed_proxy_t *mp)
case PT_PROTO_COMPLETED:
default:
log_warn(LD_CONFIG, "Unexpected state '%d' of managed proxy '%s'.",
mp->conf_state, mp->argv[0]);
(int)mp->conf_state, mp->argv[0]);
tor_assert(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment