Commit 7159d1f2 authored by Federico Vaga's avatar Federico Vaga

wrtd:tools: negative channel means unknown

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent 90e8e4b0
......@@ -35,7 +35,7 @@ static int print_message(struct wrnc_hmq *hmq)
return -1;
fprintf(stdout, "Event Type %s\n", wrtd_strlogging(log.type));
if (log.type == WRTD_LOG_PROMISC)
if (log.type == WRTD_LOG_PROMISC || log.channel < 0)
fprintf(stdout, "Channel --\n");
else
fprintf(stdout, "Channel %d\n", log.channel);
......
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