Date: Sun, 8 Oct 2006 18:15:08 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ddb db_command.c db_examine.c db_output.c db_output.h Message-ID: <200610081815.k98IF8vk008013@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2006-10-08 18:15:08 UTC FreeBSD src repository Modified files: sys/ddb db_command.c db_examine.c db_output.c db_output.h Log: 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. Revision Changes Path 1.69 +2 -2 src/sys/ddb/db_command.c 1.33 +1 -1 src/sys/ddb/db_examine.c 1.36 +2 -2 src/sys/ddb/db_output.c 1.15 +1 -1 src/sys/ddb/db_output.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610081815.k98IF8vk008013>