Small quality of life improvements

This commit is contained in:
Sparchatus 2022-04-28 17:25:18 +00:00
parent 42980b1c20
commit 9b29393930
3 changed files with 4 additions and 3 deletions

View File

@ -57,8 +57,8 @@ const char *multiboot_module_rawstring(struct mem_region *region)
VREGION_FLAGS_READ); VREGION_FLAGS_READ);
if (err_is_fail(err)) { if (err_is_fail(err)) {
DEBUG_ERR(err, "vspace_map failed"); // this error causes cascading problems so we panic
return NULL; USER_PANIC_ERR(err, "vspace_map failed");
} }
#if 0 #if 0
printf("Mapped multiboot_strings at %p\n", multiboot_strings); printf("Mapped multiboot_strings at %p\n", multiboot_strings);

View File

@ -684,6 +684,7 @@ errval_t spawn_load_by_name(char *binary_name, struct spawninfo * si,
// - Fill in argc/argv from the multiboot command line // - Fill in argc/argv from the multiboot command line
const char * c_arguments_str = multiboot_module_opts(module); const char * c_arguments_str = multiboot_module_opts(module);
if(c_arguments_str == NULL) return SPAWN_ERR_MALFORMED_SPAWND_RECORD;
// printf("c_arguments_str: %s\n", c_arguments_str); // printf("c_arguments_str: %s\n", c_arguments_str);
char raw_arguments_str[strlen(c_arguments_str)]; char raw_arguments_str[strlen(c_arguments_str)];
strcpy(raw_arguments_str, c_arguments_str); strcpy(raw_arguments_str, c_arguments_str);