summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2013-10-20 10:08:05 +0000
committermlarkin <mlarkin@openbsd.org>2013-10-20 10:08:05 +0000
commit4d2d25711b1f61bf13365597322160373fd020ef (patch)
tree11c8a82f62943494426b1a40e24001f94a929107 /sys/kern/subr_hibernate.c
parentDPRINTFs for various failure cases, disabled by default (uncomment (diff)
downloadwireguard-openbsd-4d2d25711b1f61bf13365597322160373fd020ef.tar.xz
wireguard-openbsd-4d2d25711b1f61bf13365597322160373fd020ef.zip
Provide more debugging aids when failing to read the packed image from disk
during hibernate resume. requested by deraadt
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-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)