projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0602c04
)
[project @ 2002-09-10 12:31:54 by simonmar]
author
simonmar
<unknown>
Tue, 10 Sep 2002 12:31:54 +0000
(12:31 +0000)
committer
simonmar
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/Binary.hs
b/ghc/compiler/utils/Binary.hs
index
4bef25a
..
3792e21
100644
(file)
--- a/
ghc/compiler/utils/Binary.hs
+++ b/
ghc/compiler/utils/Binary.hs
@@
-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.