Silence a verbose cprintf in net/if.c

上级 eebb0793
......@@ -172,7 +172,8 @@ if_input(struct netif *netif, void *buf, u16 len)
}
break;
default:
cprintf("if_input: unknown type %u\n", htons(ethhdr->type));
if (VERBOSE)
cprintf("if_input: unknown type %04x\n", htons(ethhdr->type));
pbuf_free(p);
p = NULL;
break;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论