summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-01-31 16:22:14 +0000
committerrwatson <rwatson@FreeBSD.org>2008-01-31 16:22:14 +0000
commit56d2c18f8e37bb0092ac85afbf4aa482b61b5be1 (patch)
tree203912df0c94d587b1ce9bcfaa1290d12fc4520f /sys/ddb
parent68cdabfd2e217792877b39d312c5d91a0e448722 (diff)
downloadFreeBSD-src-56d2c18f8e37bb0092ac85afbf4aa482b61b5be1.zip
FreeBSD-src-56d2c18f8e37bb0092ac85afbf4aa482b61b5be1.tar.gz
Use dump_write() instead of direct calls to di->dumper() in textdumps.
Textdumps already do pretty much the same sanity checking, but abstractions and seatbelts are both useful. MFC after: 2 months
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_textdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_textdump.c b/sys/ddb/db_textdump.c
index a876278..fbfc18f 100644
--- a/sys/ddb/db_textdump.c
+++ b/sys/ddb/db_textdump.c
@@ -259,8 +259,8 @@ textdump_writeblock(struct dumperinfo *di, off_t offset, char *buffer)
return (EIO);
if (offset < SIZEOF_METADATA)
return (ENOSPC);
- textdump_error = di->dumper(di->priv, buffer, 0, offset +
- di->mediaoffset, TEXTDUMP_BLOCKSIZE);
+ textdump_error = dump_write(di, buffer, 0, offset + di->mediaoffset,
+ TEXTDUMP_BLOCKSIZE);
return (textdump_error);
}
@@ -502,7 +502,7 @@ textdump_dumpsys(struct dumperinfo *di)
* Terminate the dump, report any errors, and clear the pending flag.
*/
if (textdump_error == 0)
- (void)di->dumper(di->priv, NULL, 0, 0, 0);
+ (void)dump_write(di, NULL, 0, 0, 0);
if (textdump_error == ENOSPC)
printf("Insufficient space on dump partition\n");
else if (textdump_error != 0)
OpenPOWER on IntegriCloud