]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kdb_main: fix help print
authorJason Wessel <jason.wessel@windriver.com>
Mon, 4 Feb 2013 15:52:14 +0000 (09:52 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Sat, 2 Mar 2013 14:39:09 +0000 (08:39 -0600)
commit686f0c4e9c0826411dba34dc70e1ffebcf62ada6
tree534e59b26a37153fa34e18aea7751a97842cbc92
parent3e42249d03fd0ca8ce4a92a32ae1ea698b5d5bc7
kdb_main: fix help print

The help command was chopping all the usage instructions such that
they were not readable.

Example:

bta             [D|R|S|T|C|Z|E|U|I| Backtrace all processes matching state flag
per_cpu         <sym> [<bytes>] [<c Display per_cpu variables

Where as it should look like:

bta             [D|R|S|T|C|Z|E|U|I|M|A]
                                    Backtrace all processes matching state flag
per_cpu         <sym> [<bytes>] [<cpu>]
                                    Display per_cpu variables

All that is needed is to check the how long the cmd_usage is and jump
to the next line when appropriate.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/kdb/kdb_main.c