Commit 7fae11e7 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Minor paranoia when logging channel info.

parent 50b68846
...@@ -976,7 +976,7 @@ dump_route_callback(struct babel_route *route, void *closure) ...@@ -976,7 +976,7 @@ dump_route_callback(struct babel_route *route, void *closure)
break; break;
if(k > 0) if(k > 0)
channels[j++] = ','; channels[j++] = ',';
snprintf(channels + j, 100 - j, "%d", route->channels[k]); snprintf(channels + j, 100 - j, "%u", (unsigned)route->channels[k]);
j = strlen(channels); j = strlen(channels);
} }
snprintf(channels + j, 100 - j, ")"); snprintf(channels + j, 100 - j, ")");
......
Markdown is supported
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