logging: add DEVICE logging domain

This commit is contained in:
Dan Williams
2010-04-06 16:25:42 -07:00
parent 28664e80fe
commit 8faf8c91ef
3 changed files with 3 additions and 1 deletions

View File

@@ -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}
}; };

View File

@@ -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 }
}; };

View File

@@ -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 */