Changes in uspace/app/bdsh/cmds/modules/kcon/kcon.c [a000878c:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/kcon/kcon.c
ra000878c r79ae36dd 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.