summaryrefslogtreecommitdiff
path: root/src/console/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/console.c')
-rw-r--r--src/console/console.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/console/console.c b/src/console/console.c
index cf6521675a..aeccc14433 100644
--- a/src/console/console.c
+++ b/src/console/console.c
@@ -14,10 +14,9 @@ static int initialized;
void console_init(void)
{
struct console_driver *driver;
-
- if (get_option("debug_level", &console_loglevel))
- console_loglevel = DEFAULT_CONSOLE_LOGLEVEL;
-
+ if(get_option(&console_loglevel, "debug_level"))
+ console_loglevel=DEFAULT_CONSOLE_LOGLEVEL;
+
for(driver = console_drivers; driver < econsole_drivers; driver++) {
if (!driver->init)
continue;