Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/minidump_machdep.c
Show First 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | minidumpsys(struct dumperinfo *di) | ||||
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); | ||||
} | } |