[project @ 2002-09-10 12:31:54 by simonmar]
authorsimonmar <unknown>
Tue, 10 Sep 2002 12:31:54 +0000 (12:31 +0000)
committersimonmar <unknown>
Tue, 10 Sep 2002 12:31:54 +0000 (12:31 +0000)
Put debugging output in #ifdef DEBUG

MERGE TO STABLE

ghc/compiler/utils/Binary.hs

index 4bef25a..3792e21 100644 (file)
@@ -263,7 +263,9 @@ expandBin (BinMem _ ix_r sz_r arr_r) off = do
             | i <- [ 0 .. sz-1 ] ]
    writeFastMutInt sz_r sz'
    writeIORef arr_r arr'
-   hPutStrLn stderr ("expanding to size: " ++ show sz')
+#ifdef DEBUG
+   hPutStrLn stderr ("Binary: expanding to size: " ++ show sz')
+#endif
    return ()
 expandBin (BinIO _ _ _) _ = return ()
        -- no need to expand a file, we'll assume they expand by themselves.