Remove a use of printf
authorIan Lynagh <ian@well-typed.com>
Thu, 29 Nov 2012 21:32:09 +0000 (21:32 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 29 Nov 2012 21:32:09 +0000 (21:32 +0000)
It looks like it would fail anyway, as it 'show'ed its argument before
passing it on to printf.

compiler/ghci/LibFFI.hsc

index 7137099..c939801 100644 (file)
@@ -21,7 +21,6 @@ import DynFlags
 import Control.Monad
 import Foreign
 import Foreign.C
-import Text.Printf
 
 ----------------------------------------------------------------------------
 
@@ -46,7 +45,7 @@ prepForeignCall dflags cconv arg_types result_type
     r <- ffi_prep_cif cif abi (fromIntegral n_args) res_ty arg_arr
     if (r /= fFI_OK)
        then throwGhcException (InstallationError
-                        (printf "prepForeignCallFailed: %d" (show r)))
+                                   ("prepForeignCallFailed: " ++ show r))
        else return cif
 
 convToABI :: CCallConv -> C_ffi_abi