feat: moved all required prints to printf

This commit is contained in:
2021-02-06 17:04:32 +01:00
parent 7ff33d611c
commit 9440fae968
4 changed files with 39 additions and 61 deletions

View File

@@ -34,6 +34,7 @@ typedef struct {
} cmd_handler;
void print(const char *arg);
void ide(const char *arg);
void echo(const char *arg);
void help(const char *arg);
@@ -41,6 +42,7 @@ cmd_handler cmd_handlers[] = {
{"help", help},
{"echo", echo},
{"print", print},
{"ide", ide},
{NULL, NULL},
};
@@ -80,6 +82,18 @@ void print(const char *arg) {
print_bootinfo();
} else if (strcmp(arg, "pci") == 0) {
pci_print_info();
} else if (strcmp(arg, "ide") == 0) {
ide_print_devices();
} else {
kprint("Unknown print ");
kprint(arg);
kprint(newline);
}
}
void ide(const char* arg) {
if (strcmp(arg, "devices") == 0) {
ide_print_devices();
} else {
kprint("Unknown print ");
kprint(arg);