kernel/arch/um/kernel/kmsg_dump.c
.. .. @@ -9,20 +9,19 @@ 9 9 enum kmsg_dump_reason reason) 10 10 { 11 11 static char line[1024]; 12 -12 + struct console *con;13 13 size_t len = 0; 14 - bool con_available = false;15 14 16 15 /* only dump kmsg when no console is available */ 17 16 if (!console_trylock()) 18 17 return; 19 18 20 - if (console_drivers != NULL)21 - con_available = true;19 + for_each_console(con)20 + break;22 21 23 22 console_unlock(); 24 23 25 - if (con_available == true)24 + if (con)26 25 return; 27 26 28 27 printf("kmsg_dump:\n");