Commit ed758b3
committed
printk/console: Split out code that enables default console
Put the code enabling a console by default into a separate function
called try_enable_default_console().
Rename try_enable_new_console() to try_enable_preferred_console() to
make the purpose of the different variants more clear.
It is a code refactoring without any functional change.
Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Link: https://lore.kernel.org/r/20211122132649.12737-2-pmladek@suse.com1 parent 7d5775d commit ed758b3
1 file changed
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2861 | 2861 | | |
2862 | 2862 | | |
2863 | 2863 | | |
2864 | | - | |
| 2864 | + | |
| 2865 | + | |
2865 | 2866 | | |
2866 | 2867 | | |
2867 | 2868 | | |
| |||
2909 | 2910 | | |
2910 | 2911 | | |
2911 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
2912 | 2930 | | |
2913 | 2931 | | |
2914 | 2932 | | |
| |||
2964 | 2982 | | |
2965 | 2983 | | |
2966 | 2984 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
2971 | | - | |
2972 | | - | |
2973 | | - | |
2974 | | - | |
2975 | | - | |
2976 | | - | |
2977 | | - | |
2978 | | - | |
| 2985 | + | |
| 2986 | + | |
2979 | 2987 | | |
2980 | 2988 | | |
2981 | | - | |
| 2989 | + | |
2982 | 2990 | | |
2983 | 2991 | | |
2984 | 2992 | | |
2985 | | - | |
| 2993 | + | |
2986 | 2994 | | |
2987 | 2995 | | |
2988 | 2996 | | |
| |||
0 commit comments