Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/riscv/minidump_machdep.c
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | if (error == ENOSPC) { | ||||
if (retry_count < 5) { | if (retry_count < 5) { | ||||
printf("Retrying...\n"); | printf("Retrying...\n"); | ||||
goto retry; | goto retry; | ||||
} | } | ||||
printf("Dump failed.\n"); | printf("Dump failed.\n"); | ||||
} | } | ||||
else if (error == ECANCELED) | else if (error == ECANCELED) | ||||
printf("Dump aborted\n"); | printf("Dump aborted\n"); | ||||
else if (error == E2BIG) | else if (error == E2BIG) { | ||||
printf("Dump failed. Partition too small.\n"); | printf("Dump failed. Partition too small (about %lluMB were " | ||||
else | "needed this time).\n", (long long)dumpsize >> 20); | ||||
} else | |||||
printf("** DUMP FAILED (ERROR %d) **\n", error); | printf("** DUMP FAILED (ERROR %d) **\n", error); | ||||
return (error); | return (error); | ||||
} | } | ||||
/* | /* | ||||
* Add a page to the minidump bitmap. | * Add a page to the minidump bitmap. | ||||
*/ | */ | ||||
void | void | ||||
Show All 23 Lines |