Commit 333c50bb authored by Alessandro Rubini's avatar Alessandro Rubini

net: move net_verbose() to be like the other two

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c24326a8
......@@ -25,5 +25,8 @@
#define wrc_verbose(...) \
({if (WRC_IS_VERBOSE) __debug_printf(__VA_ARGS__);})
#define net_verbose(...) \
({if (NET_IS_VERBOSE) __debug_printf(__VA_ARGS__);})
#endif /* __FREESTANDING_TRACE_H__ */
......@@ -55,20 +55,6 @@ struct my_socket {
static struct my_socket socks[NET_MAX_SOCKETS];
static int net_verbose(const char *fmt, ...)
{
va_list args;
int ret = 0;
if (NET_IS_VERBOSE) {
va_start(args, fmt);
ret = pp_vprintf(fmt, args);
va_end(args);
}
return ret;
}
int ptpd_netif_init()
{
memset(socks, 0, sizeof(socks));
......
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