summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2013-11-05 07:38:26 +0000
committermlarkin <mlarkin@openbsd.org>2013-11-05 07:38:26 +0000
commit4b6eb3216618dce0560dd5e3c93c58808a233578 (patch)
tree094b572b257e90027938be30e98455a9a4f9c6b4 /sys/kern/subr_hibernate.c
parentnew function uvm_hibswap() finds a the largest free zone in swap, which (diff)
downloadwireguard-openbsd-4b6eb3216618dce0560dd5e3c93c58808a233578.tar.xz
wireguard-openbsd-4b6eb3216618dce0560dd5e3c93c58808a233578.zip
Change an #if 0 surrounding a debug printf into a DPRINTF instead.
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 703934159b4..aaaa7700b81 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.68 2013/11/05 06:02:44 deraadt Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.69 2013/11/05 07:38:26 mlarkin Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -1947,11 +1947,9 @@ hibernate_suspend(void)
/* Calculate block offsets in swap */
hib_info.image_offset = ctod(start) + hib_info.swap_offset;
-#if 0
/* XXX side effect */
- printf("hibernate @ block %lld max-length %lu blocks\n",
+ DPRINTF("hibernate @ block %lld max-length %lu blocks\n",
hib_info.image_offset, ctod(end) - ctod(start));
-#endif
pmap_kenter_pa(HIBERNATE_HIBALLOC_PAGE, HIBERNATE_HIBALLOC_PAGE,
VM_PROT_ALL);