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:52:18 +0000 (08:52 -0600)
commit074604af21c971cf2fcfaa0f6012b4b0c9ca891a
tree99be6f5e72b1438866e5bbce8c010fb3269eaa75
parent4eb7a66d9410927fb8fbafad8b8298b627cdd128
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