#5228: Wrong format specifiers break debug build
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |       Owner:                             
        Type:  bug                |      Status:  new                        
    Priority:  normal             |   Component:  Runtime System             
     Version:  7.1                |    Keywords:  format specifiers, validate
    Testcase:                     |   Blockedby:                             
          Os:  Unknown/Multiple   |    Blocking:                             
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown               
----------------------------------+-----------------------------------------
 In `rts/Trace.c`, in the function `traceCapsetModify_`, the format
 specifiers were "%d", but they should be "%lu" since `StgWord32` and (via
 that) `CapsetID` are typedef'ed to `unsigned long`.
 The code is conditional, only alive if DEBUG is defined, so it only breaks
 debug builds. Patch(es) attached.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5228>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to