Silence a verbose cprintf in net/if.c

上级 eebb0793
...@@ -172,7 +172,8 @@ if_input(struct netif *netif, void *buf, u16 len) ...@@ -172,7 +172,8 @@ if_input(struct netif *netif, void *buf, u16 len)
} }
break; break;
default: 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); pbuf_free(p);
p = NULL; p = NULL;
break; break;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论