diff options
author | Jovi Zhang <bookjovi@gmail.com> | 2010-03-15 13:28:00 +0100 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2011-03-25 22:37:30 +0100 |
commit | 27029c339b1beebe79bb4e64422ad1bb8d0b6440 (patch) | |
tree | 8b4be0918813649ad50fb7ab26f376fee00e21dd /kernel/debug | |
parent | kgdboc,kgdbts: strlen() doesn't count the terminator (diff) | |
download | linux-27029c339b1beebe79bb4e64422ad1bb8d0b6440.tar.xz linux-27029c339b1beebe79bb4e64422ad1bb8d0b6440.zip |
kdb: code cleanup to use macro instead of value
It's better to use macro KDB_BASE_CMD_MAX instead of 50
Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel/debug')
-rw-r--r-- | kernel/debug/kdb/kdb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index bd3e8e29caa3..38a85428c70f 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -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; \ |