History

kdb: code cleanup to use macro instead of value

It's better to use macro KDB_BASE_CMD_MAX instead of 50

Jovi Zhang committed 16 years ago

Commit 27029c31 parent adb4b831 file · +1 −1Browse files

Showing the changes to kernel/debug (1 of 1 file). Show all

Unified · Split

kernel/debug/kdb/kdb_main.c+1−1
@@ -78,7 +78,7 @@ static unsigned int kdb_continue_catastrophic; · 77 unmodified lines
7878 static kdbtab_t *kdb_commands;
7979 #define KDB_BASE_CMD_MAX 50
8080 static int kdb_max_commands = KDB_BASE_CMD_MAX;
81−static kdbtab_t kdb_base_commands[50];
81+static kdbtab_t kdb_base_commands[KDB_BASE_CMD_MAX];
8282 #define for_each_kdbcmd(cmd, num) \
8383 for ((cmd) = kdb_base_commands, (num) = 0; \
8484 num < kdb_max_commands; \