help uz nevypisuje (null)

Prepsal jsem seznam prikazu na pevne texty misto ukazatelu a trochu upravil hlasky u help strankovani.
This commit is contained in:
2026-07-12 20:20:54 +02:00
parent c6054e7ced
commit 54a7db5784
+4 -4
View File
@@ -765,8 +765,8 @@ static void print_exec_profile(const void *entry_addr, unsigned long start_ticks
print_exec_profile_ticks(entry_addr, delta_ticks); print_exec_profile_ticks(entry_addr, delta_ticks);
} }
static const char *g_help_lines[] = { static const char g_help_lines[][80] = {
"help [1|2|3] - napoveda po strankach", "help [stranka] - napoveda po strankach",
"helpall - interaktivni help Enter/Q", "helpall - interaktivni help Enter/Q",
"info - informace o jadru", "info - informace o jadru",
"memory|mem - stav pameti", "memory|mem - stav pameti",
@@ -825,7 +825,7 @@ static void shell_help_page(unsigned int page) {
for (i = start; i < end; ++i) { for (i = start; i < end; ++i) {
printk(" %s\n", g_help_lines[i]); printk(" %s\n", g_help_lines[i]);
} }
aster_print("Tip: pouzij help 1, help 2, help 3 nebo helpall\n"); aster_print("Tip: pouzij help <cislo_stranky> nebo helpall\n");
} }
static void shell_help_all(void) { static void shell_help_all(void) {
@@ -2479,7 +2479,7 @@ static void shell_loop(void) {
if (arg1) { if (arg1) {
page = (unsigned int)parse_u32(arg1, &ok); page = (unsigned int)parse_u32(arg1, &ok);
if (!ok || page == 0) { if (!ok || page == 0) {
print_error("Pouziti: help [1|2|3]"); print_error("Pouziti: help [1..N]");
} else { } else {
shell_help_page(page); shell_help_page(page);
} }