diff options
author | bde <bde@FreeBSD.org> | 2006-10-08 18:15:08 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-08 18:15:08 +0000 |
commit | ff5fb7910a5f1cf6327ac47939d4fadc117a4701 (patch) | |
tree | 9e69099aed086269ab338b986781b6629a9787c9 /sys/ddb/db_output.h | |
parent | d3f48a8444029c6e96b2ad642d6448b598cf2b64 (diff) | |
download | FreeBSD-src-ff5fb7910a5f1cf6327ac47939d4fadc117a4701.zip FreeBSD-src-ff5fb7910a5f1cf6327ac47939d4fadc117a4701.tar.gz |
Fixed formatting of printing of command tables. WIth the default max
output width of 79, only 6 columns of width 12 each fit, but 7 columns
were printed.
The fix is to pass the width of the next output to db_end_line() and
not assume there that this width is always 1.
Related unfixed bugs:
- 1 character is wasted for a space after the last column
- suppression of trailing spaces used to limit the misformatting, but
seems to have been lost
- in db_examine(), the width of the next output is not know and is
still assumed to be 1.
Diffstat (limited to 'sys/ddb/db_output.h')
-rw-r--r-- | sys/ddb/db_output.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_output.h b/sys/ddb/db_output.h index 480c40d..cbf9f0e 100644 --- a/sys/ddb/db_output.h +++ b/sys/ddb/db_output.h @@ -40,7 +40,7 @@ void db_disable_pager(void); void db_enable_pager(void); -void db_end_line(void); +void db_end_line(int); void db_force_whitespace(void); int db_print_position(void); |