summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2013-10-20 10:08:06 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2013-10-20 10:08:06 +0000
commit062c213f0e80b7a369acb9b7291eee884ceaea1c (patch)
tree13852d4f5344f34cc41fab74084eb2489989b780 /sys/kern
parent2e6fb590a6ed48d82186e6f14172785cbdc78e9c (diff)
Provide more debugging aids when failing to read the packed image from disk
during hibernate resume. requested by deraadt
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_hibernate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index d8aeaf35736..a7d3f304b2a 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.64 2013/10/20 10:01:29 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.65 2013/10/20 10:08:05 mlarkin Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -1120,7 +1120,8 @@ hibernate_block_io(union hibernate_info *hib_info, daddr_t blkctr,
error = biowait(bp);
if (error) {
- printf("hibernate_block_io biowait failed %d\n", error);
+ printf("hib block_io biowait error %d blk %lld size %zu\n",
+ error, (long long)blkctr, xfer_size);
error = (*bdsw->d_close)(hib_info->device, 0, S_IFCHR,
curproc);
if (error)