#include <palacios/vmm_debug.h>
#include <palacios/vmm_string.h>
-#ifndef DEBUG_NE2K
+#ifndef CONFIG_DEBUG_NE2K
#undef PrintDebug
#define PrintDebug(fmts, args...)
#endif
#define compare_mac(src, dst) !memcmp(src, dst, 6)
-#ifdef DEBUG_NE2K
+#ifdef CONFIG_DEBUG_NE2K
static void dump_state(struct vm_device * dev) {
struct ne2k_context *nic_state = (struct ne2k_context *)dev->private_data;
int i;
nic_state->mem[14] = 0x57;
nic_state->mem[15] = 0x57;
-#ifdef DEBUG_NE2K
+#ifdef CONFIG_DEBUG_NE2K
dump_state(dev);
#endif
static const uchar_t brocast_mac[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
int i;
-#ifdef DEBUG_NE2K
+#ifdef CONFIG_DEBUG_NE2K
PrintDebug("\nNe2k: Packet Received:\nSource:");
for (i = 6; i < 12; i++) {
PrintDebug("%x ", pkt[i]);
}
-#ifdef DEBUG_NE2K
+#ifdef CONFIG_DEBUG_NE2K
dump_state(dev);
#endif