Commit f86de35d 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>
parent 3bfff1d4
......@@ -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