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

@@ -2905,18 +2905,9 @@ pcnet_init(const device_t *info)
{
uint32_t mac;
nic_t *dev;
#ifdef ENABLE_NIC_LOG
int i;
#endif
int c;
uint16_t checksum;
/* Get the desired debug level. */
#ifdef ENABLE_NIC_LOG
i = device_get_config_int("debug");
if (i > 0) pcnet_do_log = i;
#endif
dev = malloc(sizeof(nic_t));
memset(dev, 0x00, sizeof(nic_t));
dev->name = info->name;