aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2011-09-22 11:07:11 +0000
committerAttilio Rao <attilio@FreeBSD.org>2011-09-22 11:07:11 +0000
commit7229adb9da1f1e5c754a2eb459f123426edb8b80 (patch)
tree53f7978cc082067db6c5d1c00e007be6bdc96673
parent46ffc89eee0f3fd371bd9515b5514e75c22271b0 (diff)
Notes
-rw-r--r--sys/kern/kern_shutdown.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 6d24a622e869..95cf6b5ace35 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -712,8 +712,11 @@ dump_write(struct dumperinfo *di, void *virtual, vm_offset_t physical,
if (length != 0 && (offset < di->mediaoffset ||
offset - di->mediaoffset + length > di->mediasize)) {
- printf("Attempt to write outside dump device boundaries.\n");
- return (ENXIO);
+ printf("Attempt to write outside dump device boundaries.\n"
+ "offset(%jd), mediaoffset(%jd), length(%ju), mediasize(%jd).\n",
+ (intmax_t)offset, (intmax_t)di->mediaoffset,
+ (uintmax_t)length, (intmax_t)di->mediasize);
+ return (ENOSPC);
}
return (di->dumper(di->priv, virtual, physical, offset, length));
}