Refactor NIC logging

This commit is contained in:
Alexander Babikov
2022-02-07 18:05:58 +05:00
parent 1a7a93010d
commit 1cb301cf3b
5 changed files with 6 additions and 37 deletions

View File

@@ -120,7 +120,7 @@ typedef struct {
#ifdef ENABLE_WD_LOG
int WE_do_log = ENABLE_WD_LOG;
int wd_do_log = ENABLE_WD_LOG;
static void
wdlog(const char *fmt, ...)
@@ -596,12 +596,6 @@ wd_init(const device_t *info)
uint32_t mac;
wd_t *dev;
/* Get the desired debug level. */
#ifdef ENABLE_NIC_LOG
i = device_get_config_int("debug");
if (i > 0) WE_do_log = i;
#endif
dev = malloc(sizeof(wd_t));
memset(dev, 0x00, sizeof(wd_t));
dev->name = info->name;