summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2013-11-05 07:38:27 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2013-11-05 07:38:27 +0000
commitc2a95dfed50d95afa8287a33c5922a9dbebdb474 (patch)
tree4a2f04da52daa872f3ee9f173a329357e042f9e8
parenta86e37759d13b6a4bef6738beddd70083008d015 (diff)
Change an #if 0 surrounding a debug printf into a DPRINTF instead.
-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);