Changeset e07fe0c in mainline for generic/src/console/kconsole.c
- Timestamp:
- 2005-12-12T17:23:09Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fbe058f
- Parents:
- ebbdb8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
rebbdb8f re07fe0c 41 41 #include <func.h> 42 42 #include <symtab.h> 43 #include <macros.h> 43 44 44 45 /** Simple kernel console. … … 396 397 * @param arg Not used. 397 398 */ 398 void kconsole(void * arg)399 void kconsole(void *prompt) 399 400 { 400 401 cmd_info_t *cmd_info; … … 408 409 409 410 while (true) { 410 cmdline = clever_readline( __FUNCTION__, stdin);411 cmdline = clever_readline(prompt, stdin); 411 412 len = strlen(cmdline); 412 413 if (!len) … … 415 416 if (!cmd_info) 416 417 continue; 418 if (strncmp(cmd_info->name,"exit", \ 419 min(strlen(cmd_info->name),5)) == 0) 420 break; 417 421 (void) cmd_info->func(cmd_info->argv); 418 422 }
Note:
See TracChangeset
for help on using the changeset viewer.