Make the powerpc dumpsys() more consistent with the other architectures.

MFC after:	10.0-RELEASE
This commit is contained in:
Justin Hibbits 2013-11-06 15:56:03 +00:00
parent 4ae21ddc1d
commit d6bff760cd

View File

@ -260,7 +260,7 @@ dumpsys(struct dumperinfo *di)
ehdr.e_phnum);
/* Dump leader */
error = di->dumper(di->priv, &kdh, 0, dumplo, sizeof(kdh));
error = dump_write(di, &kdh, 0, dumplo, sizeof(kdh));
if (error)
goto fail;
dumplo += sizeof(kdh);
@ -291,12 +291,12 @@ dumpsys(struct dumperinfo *di)
goto fail;
/* Dump trailer */
error = di->dumper(di->priv, &kdh, 0, dumplo, sizeof(kdh));
error = dump_write(di, &kdh, 0, dumplo, sizeof(kdh));
if (error)
goto fail;
/* Signal completion, signoff and exit stage left. */
di->dumper(di->priv, NULL, 0, 0, 0);
dump_write(di, NULL, 0, 0, 0);
printf("\nDump complete\n");
return;
@ -306,6 +306,8 @@ dumpsys(struct dumperinfo *di)
if (error == ECANCELED)
printf("\nDump aborted\n");
else if (error == ENOSPC)
printf("\nDump failed. Partition too small.\n");
else
printf("\n** DUMP FAILED (ERROR %d) **\n", error);
}