svn commit: r257750 - head/sys/powerpc/powerpc

Justin Hibbits jhibbits at FreeBSD.org
Wed Nov 6 15:56:04 UTC 2013


Author: jhibbits
Date: Wed Nov  6 15:56:03 2013
New Revision: 257750
URL: http://svnweb.freebsd.org/changeset/base/257750

Log:
  Make the powerpc dumpsys() more consistent with the other architectures.
  
  MFC after:	10.0-RELEASE

Modified:
  head/sys/powerpc/powerpc/dump_machdep.c

Modified: head/sys/powerpc/powerpc/dump_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/dump_machdep.c	Wed Nov  6 15:49:31 2013	(r257749)
+++ head/sys/powerpc/powerpc/dump_machdep.c	Wed Nov  6 15:56:03 2013	(r257750)
@@ -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);
 }


More information about the svn-src-head mailing list