diff options
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r-- | drivers/tty/vt/vt.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 84cbf298c094..a13f7e158c5b 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
@@ -3475,6 +3475,19 @@ int con_debug_enter(struct vc_data *vc) | |||
3475 | kdb_set(2, setargs); | 3475 | kdb_set(2, setargs); |
3476 | } | 3476 | } |
3477 | } | 3477 | } |
3478 | if (vc->vc_cols < 999) { | ||
3479 | int colcount; | ||
3480 | char cols[4]; | ||
3481 | const char *setargs[3] = { | ||
3482 | "set", | ||
3483 | "COLUMNS", | ||
3484 | cols, | ||
3485 | }; | ||
3486 | if (kdbgetintenv(setargs[0], &colcount)) { | ||
3487 | snprintf(cols, 4, "%i", vc->vc_cols); | ||
3488 | kdb_set(2, setargs); | ||
3489 | } | ||
3490 | } | ||
3478 | #endif /* CONFIG_KGDB_KDB */ | 3491 | #endif /* CONFIG_KGDB_KDB */ |
3479 | return ret; | 3492 | return ret; |
3480 | } | 3493 | } |