Changeset 40fb017 in mainline for kernel/generic/src/console/cmd.c


Ignore:
Timestamp:
2011-01-31T22:10:36Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c5f0bff
Parents:
197ef43
git-author:
Vojtech Horky <> (2011-01-31 22:10:36)
git-committer:
Jakub Jermar <jakub@…> (2011-01-31 22:10:36)
Message:

More defensive kconsole command initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    r197ef43 r40fb017  
    553553        for (i = 0; basic_commands[i]; i++) {
    554554                cmd_initialize(basic_commands[i]);
    555                 if (!cmd_register(basic_commands[i]))
    556                         printf("Cannot register command %s\n", basic_commands[i]->name);
     555        }
     556
     557        for (i = 0; basic_commands[i]; i++) {
     558                if (!cmd_register(basic_commands[i])) {
     559                        printf("Cannot register command %s\n",
     560                            basic_commands[i]->name);
     561                }
    557562        }
    558563}
Note: See TracChangeset for help on using the changeset viewer.