Print usage in kernel debugger for pci, debug and disk functions.

This commit is contained in:
Ali Mashtizadeh 2023-11-28 23:42:11 -05:00
parent ddade8ac13
commit b57247e8aa
3 changed files with 7 additions and 3 deletions

View File

@ -397,6 +397,7 @@ Debug_PCIDump(int argc, const char *argv[])
uint32_t bar;
if (argc != 4) {
kprintf("pcidump requires 3 arguments!\n");
kprintf("Usage: pcidump <bus> <device> <func>\n");
return;
}

View File

@ -208,7 +208,8 @@ Debug_Dump(int argc, const char *argv[])
if (argc != 3)
{
kprintf("Dump requires 3 arguments\n");
kprintf("dump requires 2 arguments!\n");
kprintf("Usage: dump <off> <len>\n");
return;
}
@ -227,7 +228,8 @@ Debug_Disasm(int argc, const char *argv[])
int len = 1;
if (argc != 2 && argc != 3) {
kprintf("Disasm requires 2 or 3 arguments\n");
kprintf("disasm requires 1 or 2 arguments!\n");
kprintf("Usage: disasm <off> [<len>]\n");
return;
}

View File

@ -80,7 +80,8 @@ Debug_DumpDisk(int argc, const char *argv[])
SGArray sga;
if (argc != 4) {
kprintf("dumpdisk requires 4 arguments!\n");
kprintf("dumpdisk requires 3 arguments\n");
kprintf("Usage: dumpdisk <ctrl> <disk> <sector>\n");
return;
}