Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/arm/minidump_machdep.c
Show First 20 Lines • Show All 334 Lines • ▼ Show 20 Lines | #endif | ||||
return (0); | return (0); | ||||
fail: | fail: | ||||
if (error < 0) | if (error < 0) | ||||
error = -error; | error = -error; | ||||
if (error == ECANCELED) | if (error == ECANCELED) | ||||
printf("\nDump aborted\n"); | printf("\nDump aborted\n"); | ||||
else if (error == E2BIG || error == ENOSPC) | else if (error == E2BIG || error == ENOSPC) { | ||||
printf("\nDump failed. Partition too small.\n"); | printf("\nDump failed. Partition too small (about %lluMB were " | ||||
else | "needed this time).\n", (long long)dumpsize >> 20); | ||||
} else | |||||
printf("\n** DUMP FAILED (ERROR %d) **\n", error); | printf("\n** DUMP FAILED (ERROR %d) **\n", error); | ||||
return (error); | return (error); | ||||
} | } | ||||
void | void | ||||
dump_add_page(vm_paddr_t pa) | dump_add_page(vm_paddr_t pa) | ||||
{ | { | ||||
int idx, bit; | int idx, bit; | ||||
Show All 17 Lines |