git: kernel/ddb: Fix formatting when printing command tables.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Sep 5 13:38:22 PDT 2013


commit 3734708d4840aa98ed8d7fb80e64a46c8b0b5cdf
Author: Sascha Wildner <saw at online.de>
Date:   Thu Sep 5 22:38:10 2013 +0200

    kernel/ddb: Fix formatting when printing command tables.
    
    FreeBSD's r163134:
    
    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 known and is
      still assumed to be 1.
    
    Taken-from: FreeBSD

Summary of changes:
 sys/ddb/db_command.c | 6 +++---
 sys/ddb/db_examine.c | 2 +-
 sys/ddb/db_output.c  | 4 ++--
 sys/ddb/db_output.h  | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3734708d4840aa98ed8d7fb80e64a46c8b0b5cdf


-- 
DragonFly BSD source repository


More information about the Commits mailing list