logging: add DEVICE logging domain
This commit is contained in:
@@ -462,7 +462,7 @@ main (int argc, char *argv[])
|
|||||||
{ "plugins", 0, 0, G_OPTION_ARG_STRING, &plugins, "List of plugins separated by ','", "plugin1,plugin2" },
|
{ "plugins", 0, 0, G_OPTION_ARG_STRING, &plugins, "List of plugins separated by ','", "plugin1,plugin2" },
|
||||||
{ "log-level", 0, 0, G_OPTION_ARG_STRING, &log_level, "Log level: one of [ERR, WARN, INFO, DEBUG]", "INFO" },
|
{ "log-level", 0, 0, G_OPTION_ARG_STRING, &log_level, "Log level: one of [ERR, WARN, INFO, DEBUG]", "INFO" },
|
||||||
{ "log-domain", 0, 0, G_OPTION_ARG_STRING, &log_domains,
|
{ "log-domain", 0, 0, G_OPTION_ARG_STRING, &log_domains,
|
||||||
"Log domains separated by ',': any combination of [NONE,HW,RKILL,ETHER,WIFI,BT,MB,DHCP4,DHCP6,PPP,WIFI_SCAN,IP4,IP6,AUTOIP4,DNS,VPN,SHARING,SUPPLICANT,USER_SET,SYS_SET,SUSPEND,CORE]",
|
"Log domains separated by ',': any combination of [NONE,HW,RKILL,ETHER,WIFI,BT,MB,DHCP4,DHCP6,PPP,WIFI_SCAN,IP4,IP6,AUTOIP4,DNS,VPN,SHARING,SUPPLICANT,USER_SET,SYS_SET,SUSPEND,CORE,DEVICE]",
|
||||||
"HW,RFKILL,WIFI" },
|
"HW,RFKILL,WIFI" },
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
@@ -77,6 +77,7 @@ static const LogDesc domain_descs[] = {
|
|||||||
{ LOGD_SYS_SET, "SYS_SET" },
|
{ LOGD_SYS_SET, "SYS_SET" },
|
||||||
{ LOGD_SUSPEND, "SUSPEND" },
|
{ LOGD_SUSPEND, "SUSPEND" },
|
||||||
{ LOGD_CORE, "CORE" },
|
{ LOGD_CORE, "CORE" },
|
||||||
|
{ LOGD_DEVICE, "DEVICE" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -48,6 +48,7 @@ enum {
|
|||||||
LOGD_SYS_SET = 0x00040000,
|
LOGD_SYS_SET = 0x00040000,
|
||||||
LOGD_SUSPEND = 0x00080000,
|
LOGD_SUSPEND = 0x00080000,
|
||||||
LOGD_CORE = 0x00100000, /* Core daemon and policy stuff */
|
LOGD_CORE = 0x00100000, /* Core daemon and policy stuff */
|
||||||
|
LOGD_DEVICE = 0x00200000, /* Device state and activation */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Log levels */
|
/* Log levels */
|
||||||
|
Reference in New Issue
Block a user