Commit 8eb92c7e authored by simon qian's avatar simon qian Committed by Øyvind Harboe
Browse files

transport: fix LOG_DEBUG gaffe

LOG_DEBUG() arguments are only evaluated when DEBUG logging
is enabled, do not use arguments that have side effects
like foo++.
Signed-off-by: default avatarØyvind Harboe <>
parent 8684bd13
......@@ -125,8 +125,10 @@ int allow_transports(struct command_context *ctx, const char **vector)
} else {
/* guard against user config errors */
LOG_WARNING("must select a transport.");
while (*vector)
LOG_DEBUG("allow transport '%s'", *vector++);
while (*vector) {
LOG_DEBUG("allow transport '%s'", *vector);
return ERROR_OK;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment