diff options
Diffstat (limited to 'src/vconsole')
-rw-r--r-- | src/vconsole/vconsole-setup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c index 185b041a1c..a0ab5990fc 100644 --- a/src/vconsole/vconsole-setup.c +++ b/src/vconsole/vconsole-setup.c @@ -237,10 +237,10 @@ static void setup_remaining_vcs(int fd, bool utf8) { if (r < 0) log_warning_errno(errno, "KD_FONT_OP_GET failed while trying to get the font metadata: %m"); else { - /* sanitize parameters first */ + /* verify parameter sanity first */ if (cfo.width > 32 || cfo.height > 32 || cfo.charcount > 512) log_warning("Invalid font metadata - width: %u (max 32), height: %u (max 32), count: %u (max 512)", - cfo.width, cfo.height, cfo.charcount); + cfo.width, cfo.height, cfo.charcount); else { /* * Console fonts supported by the kernel are limited in size to 32 x 32 and maximum 512 @@ -270,9 +270,8 @@ static void setup_remaining_vcs(int fd, bool utf8) { } } - if (cfo.op != KD_FONT_OP_SET) { + if (cfo.op != KD_FONT_OP_SET) log_warning("Fonts will not be copied to remaining consoles"); - } for (i = 1; i <= 63; i++) { char ttyname[strlen("/dev/tty") + DECIMAL_STR_MAX(int)]; |