diff options
Diffstat (limited to 'drivers/tty/vt/vt.c')
-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 999ca63afdef..f87d7e8964bf 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
@@ -3442,6 +3442,19 @@ int con_debug_enter(struct vc_data *vc) | |||
3442 | kdb_set(2, setargs); | 3442 | kdb_set(2, setargs); |
3443 | } | 3443 | } |
3444 | } | 3444 | } |
3445 | if (vc->vc_cols < 999) { | ||
3446 | int colcount; | ||
3447 | char cols[4]; | ||
3448 | const char *setargs[3] = { | ||
3449 | "set", | ||
3450 | "COLUMNS", | ||
3451 | cols, | ||
3452 | }; | ||
3453 | if (kdbgetintenv(setargs[0], &colcount)) { | ||
3454 | snprintf(cols, 4, "%i", vc->vc_cols); | ||
3455 | kdb_set(2, setargs); | ||
3456 | } | ||
3457 | } | ||
3445 | #endif /* CONFIG_KGDB_KDB */ | 3458 | #endif /* CONFIG_KGDB_KDB */ |
3446 | return ret; | 3459 | return ret; |
3447 | } | 3460 | } |