Changeset 41811af in mainline for uspace/app/bdsh/cmds/modules/kcon/kcon.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (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
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/kcon/kcon.c
r9536e6e r41811af 32 32 #include <stdlib.h> 33 33 #include <io/console.h> 34 #include <vfs/vfs.h>35 34 #include "config.h" 36 35 #include "util.h" … … 42 41 static const char *cmdname = "kcon"; 43 42 44 /* Disp ayshelp for kcon in various levels */43 /* Display help for kcon in various levels */ 45 44 void help_cmd_kcon(unsigned int level) 46 45 { 47 46 printf("`kcon' switches to the kernel debug console.\n"); 48 49 if (level != HELP_SHORT) { 50 printf("Usage: %s\n", cmdname); 51 } 52 47 48 if (level != HELP_SHORT) 49 printf("Usage: %s\n", cmdname); 50 53 51 return; 54 52 } … … 57 55 int cmd_kcon(char **argv) 58 56 { 59 unsigned int argc; 60 61 argc = cli_count_args(argv); 62 57 unsigned int argc = cli_count_args(argv); 58 63 59 if (argc != 1) { 64 60 printf("%s - incorrect number of arguments. Try `%s --help'\n", 65 61 cmdname, cmdname); 66 62 return CMD_FAILURE; 67 63 } 68 69 console_kcon_enable(fphone(stdout)); 70 71 return CMD_SUCCESS; 64 65 if (console_kcon()) 66 return CMD_SUCCESS; 67 else 68 return CMD_FAILURE; 72 69 } 73
Note:
See TracChangeset
for help on using the changeset viewer.