Skip to content

Commit

Permalink
Change debug prints in readTextDevice' to refer to right function
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Apr 3, 2011
1 parent 345ff2c commit 6b62d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GHC/IO/Handle/Internals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ readTextDevice' h_@Handle__{..} bbuf0 cbuf = do
then ioe_invalidCharacter
else return bbuf2

debugIO ("readTextDevice after reading: bbuf=" ++ summaryBuffer bbuf2)
debugIO ("readTextDevice' after reading: bbuf=" ++ summaryBuffer bbuf2)

(bbuf3,cbuf') <-
case haDecoder of
Expand All @@ -837,7 +837,7 @@ readTextDevice' h_@Handle__{..} bbuf0 cbuf = do
writeIORef haLastDecode (state, bbuf2)
(encode decoder) bbuf2 cbuf

debugIO ("readTextDevice after decoding: cbuf=" ++ summaryBuffer cbuf' ++
debugIO ("readTextDevice' after decoding: cbuf=" ++ summaryBuffer cbuf' ++
" bbuf=" ++ summaryBuffer bbuf3)

writeIORef haByteBuffer bbuf3
Expand Down

0 comments on commit 6b62d7c

Please sign in to comment.