diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2013-11-06 15:56:03 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2013-11-06 15:56:03 +0000 |
commit | 44059b5537f9f894fbfc4e82d05f2d8e1eb60a39 (patch) | |
tree | 6d609cc7b2d4f8774dd2b9acd6c972779f022bc1 | |
parent | 2ed67b9eb8b4b7e56aff59e01f4884094fa05b8d (diff) | |
download | FreeBSD-src-44059b5537f9f894fbfc4e82d05f2d8e1eb60a39.zip FreeBSD-src-44059b5537f9f894fbfc4e82d05f2d8e1eb60a39.tar.gz |
Make the powerpc dumpsys() more consistent with the other architectures.
MFC after: 10.0-RELEASE
-rw-r--r-- | sys/powerpc/powerpc/dump_machdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/powerpc/powerpc/dump_machdep.c b/sys/powerpc/powerpc/dump_machdep.c index 043505f..df5f733 100644 --- a/sys/powerpc/powerpc/dump_machdep.c +++ b/sys/powerpc/powerpc/dump_machdep.c @@ -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); } |