]> git.baikalelectronics.ru Git - kernel.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:52:18 +0000 (08:52 -0600)
commitd58967d44e4ffd67f6e7fbb8e2a565e13289a213
tree99be6f5e72b1438866e5bbce8c010fb3269eaa75
parent680918cfaab18853b74d79eb25a9fa3a5ef941ee
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