diff --git a/libraries/ghc-compact/tests/compact_serialize.stderr b/libraries/ghc-compact/tests/compact_serialize.stderr
index 2483efa0092daec559680311b443fbcfa4b04884..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
--- a/libraries/ghc-compact/tests/compact_serialize.stderr
+++ b/libraries/ghc-compact/tests/compact_serialize.stderr
@@ -1 +0,0 @@
-Compact imported at the wrong address, will fix up internal pointers
diff --git a/rts/sm/CNF.c b/rts/sm/CNF.c
index bdb018d036da92d7138abfea035e917a9f36cc89..cec0e31e43992de0895d90917caaa368781f72e6 100644
--- a/rts/sm/CNF.c
+++ b/rts/sm/CNF.c
@@ -1131,8 +1131,8 @@ maybe_fixup_internal_pointers (StgCompactNFDataBlock *block,
     if (!any_needs_fixup(block))
         return root;
 
-    debugBelch("Compact imported at the wrong address, will fix up"
-               " internal pointers\n");
+    IF_DEBUG(gc, debugBelch("Compact imported at the wrong address, "
+                            "will fix up internal pointers\n"));
 
     // I am PROOT!
     proot = &root;