Merge branch 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / kernel / debug / kdb / kdb_main.c
index bd3e8e2..be14779 100644 (file)
@@ -78,7 +78,7 @@ static unsigned int kdb_continue_catastrophic;
 static kdbtab_t *kdb_commands;
 #define KDB_BASE_CMD_MAX 50
 static int kdb_max_commands = KDB_BASE_CMD_MAX;
-static kdbtab_t kdb_base_commands[50];
+static kdbtab_t kdb_base_commands[KDB_BASE_CMD_MAX];
 #define for_each_kdbcmd(cmd, num)                                      \
        for ((cmd) = kdb_base_commands, (num) = 0;                      \
             num < kdb_max_commands;                                    \
@@ -441,9 +441,9 @@ static int kdb_check_regs(void)
  *     symbol name, and offset to the caller.
  *
  *     The argument may consist of a numeric value (decimal or
- *     hexidecimal), a symbol name, a register name (preceeded by the
+ *     hexidecimal), a symbol name, a register name (preceded by the
  *     percent sign), an environment variable with a numeric value
- *     (preceeded by a dollar sign) or a simple arithmetic expression
+ *     (preceded by a dollar sign) or a simple arithmetic expression
  *     consisting of a symbol name, +/-, and a numeric constant value
  *     (offset).
  * Parameters:
@@ -1335,7 +1335,7 @@ void kdb_print_state(const char *text, int value)
  *     error           The hardware-defined error code
  *     reason2         kdb's current reason code.
  *                     Initially error but can change
- *                     acording to kdb state.
+ *                     according to kdb state.
  *     db_result       Result code from break or debug point.
  *     regs            The exception frame at time of fault/breakpoint.
  *                     should always be valid.
@@ -2892,7 +2892,7 @@ static void __init kdb_inittab(void)
          "Send a signal to a process", 0, KDB_REPEAT_NONE);
        kdb_register_repeat("summary", kdb_summary, "",
          "Summarize the system", 4, KDB_REPEAT_NONE);
-       kdb_register_repeat("per_cpu", kdb_per_cpu, "",
+       kdb_register_repeat("per_cpu", kdb_per_cpu, "<sym> [<bytes>] [<cpu>]",
          "Display per_cpu variables", 3, KDB_REPEAT_NONE);
        kdb_register_repeat("grephelp", kdb_grep_help, "",
          "Display help on | grep", 0, KDB_REPEAT_NONE);