diff --git a/monitor/packet.c b/monitor/packet.c
index e233b1e..f71216a 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
#define COLOR_PHY_PACKET COLOR_BLUE
static time_t time_offset = ((time_t) -1);
-static int priority_level = 6;
+static int priority_level = BTSNOOP_PRIORITY_INFO;
static unsigned long filter_mask = 0;
static bool index_filter = false;
static uint16_t index_number = 0;
return;
if (!strcasecmp(priority, "debug"))
- priority_level = 7;
+ priority_level = BTSNOOP_PRIORITY_DEBUG;
else
priority_level = atoi(priority);
}
return;
switch (priority) {
- case 0x03:
+ case BTSNOOP_PRIORITY_ERR:
color = COLOR_ERROR;
break;
- case 0x04:
+ case BTSNOOP_PRIORITY_WARNING:
color = COLOR_WARN;
break;
- case 0x06:
+ case BTSNOOP_PRIORITY_INFO:
color = COLOR_INFO;
break;
- case 0x07:
+ case BTSNOOP_PRIORITY_DEBUG:
color = COLOR_DEBUG;
break;
default: