Changeset 371bd7d in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/console/kconsole.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
rcd82bb1 r371bd7d 45 45 #include <print.h> 46 46 #include <panic.h> 47 #include < arch/types.h>47 #include <typedefs.h> 48 48 #include <adt/list.h> 49 49 #include <arch.h> … … 51 51 #include <debug.h> 52 52 #include <func.h> 53 #include <str ing.h>53 #include <str.h> 54 54 #include <macros.h> 55 55 #include <sysinfo/sysinfo.h> … … 58 58 #include <errno.h> 59 59 #include <putchar.h> 60 #include <str ing.h>60 #include <str.h> 61 61 62 62 /** Simple kernel console. … … 224 224 printf("\n"); 225 225 pos = NULL; 226 while ( (hint = cmdtab_search_one(name, &pos))) {226 while (cmdtab_search_one(name, &pos)) { 227 227 cmd_info_t *hlp = list_get_instance(pos, cmd_info_t, link); 228 228 printf("%s (%s)\n", hlp->name, hlp->description); … … 543 543 if (str_lcmp(hlp->name, cmdline + start, 544 544 max(str_length(hlp->name), 545 str_nlength(cmdline + start, (size_t) (end - start) - 1))) == 0) {545 str_nlength(cmdline + start, (size_t) (end - start)))) == 0) { 546 546 cmd = hlp; 547 547 break; … … 643 643 * 644 644 */ 645 void kconsole(c har *prompt,char *msg, bool kcon)645 void kconsole(const char *prompt, const char *msg, bool kcon) 646 646 { 647 647 if (!stdin) {
Note:
See TracChangeset
for help on using the changeset viewer.
