Changeset 371bd7d in mainline for kernel/generic/src/console
- 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. - Location:
- kernel/generic/src/console
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/chardev.c
rcd82bb1 r371bd7d 47 47 * 48 48 */ 49 void indev_initialize(c har *name, indev_t *indev,49 void indev_initialize(const char *name, indev_t *indev, 50 50 indev_operations_t *op) 51 51 { … … 130 130 * 131 131 */ 132 void outdev_initialize(c har *name, outdev_t *outdev,132 void outdev_initialize(const char *name, outdev_t *outdev, 133 133 outdev_operations_t *op) 134 134 { -
kernel/generic/src/console/cmd.c
rcd82bb1 r371bd7d 46 46 #include <print.h> 47 47 #include <panic.h> 48 #include < arch/types.h>48 #include <typedefs.h> 49 49 #include <adt/list.h> 50 50 #include <arch.h> 51 51 #include <config.h> 52 52 #include <func.h> 53 #include <str ing.h>53 #include <str.h> 54 54 #include <macros.h> 55 55 #include <debug.h> … … 1033 1033 /* Execute the test */ 1034 1034 test_quiet = false; 1035 c har *ret = test->entry();1035 const char *ret = test->entry(); 1036 1036 1037 1037 /* Update and read thread accounting */ … … 1086 1086 /* Execute the test */ 1087 1087 test_quiet = true; 1088 c har *ret = test->entry();1088 const char *ret = test->entry(); 1089 1089 1090 1090 /* Update and read thread accounting */ -
kernel/generic/src/console/console.c
rcd82bb1 r371bd7d 39 39 #include <synch/waitq.h> 40 40 #include <synch/spinlock.h> 41 #include < arch/types.h>41 #include <typedefs.h> 42 42 #include <ddi/irq.h> 43 43 #include <ddi/ddi.h> … … 45 45 #include <ipc/irq.h> 46 46 #include <arch.h> 47 #include <panic.h> 47 48 #include <print.h> 48 49 #include <putchar.h> … … 50 51 #include <syscall/copy.h> 51 52 #include <errno.h> 52 #include <str ing.h>53 #include <str.h> 53 54 54 55 #define KLOG_PAGES 4 -
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.
