aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_ktr.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-11-01 22:15:15 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-11-01 22:15:15 +0000
commitd39d4a6e6412f88225d1b78c8a797ab82daac250 (patch)
tree2d51ddc5baf115819b8b07497742acacc8965e22 /sys/kern/kern_ktr.c
parent291fd55363488420dd6669c5e2fd85bc91b13cbc (diff)
downloadsrc-d39d4a6e6412f88225d1b78c8a797ab82daac250.tar.gz
src-d39d4a6e6412f88225d1b78c8a797ab82daac250.zip
- Change the ddb paging "support" to use a variable (db_lines_per_page) to
control the number of lines per page rather than a constant. The variable can be examined and changed in ddb as '$lines'. Setting the variable to 0 will effectively turn off paging. - Change db_putchar() to force out pending whitespace before outputting newlines and carriage returns so that one can rub out content on the current line via '\r \r' type strings. - Change the simple pager to rub out the --More-- prompt explicitly when the routine exits. - Add some aliases to the simple pager to make it more compatible with more(1): 'e' and 'j' do a single line. 'd' does half a page, and 'f' does a full page. MFC after: 1 month Inspired by: kris
Notes
Notes: svn path=/head/; revision=137117
Diffstat (limited to 'sys/kern/kern_ktr.c')
-rw-r--r--sys/kern/kern_ktr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index dbb7f107d42a..bd25e36c778e 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -282,7 +282,7 @@ DB_SHOW_COMMAND(ktr, db_ktr_all)
if (db_mach_vtrace() == 0)
break;
} else {
- db_setup_paging(db_simple_pager, &quit, DB_LINES_PER_PAGE);
+ db_setup_paging(db_simple_pager, &quit, db_lines_per_page);
while (!quit)
if (db_mach_vtrace() == 0)
break;