fix a non-portable printf format
authorSimon Marlow <marlowsd@gmail.com>
Tue, 30 Mar 2010 13:44:37 +0000 (13:44 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 30 Mar 2010 13:44:37 +0000 (13:44 +0000)
rts/RtsUtils.c

index 51c1250..9021909 100644 (file)
@@ -138,8 +138,8 @@ static void addAllocation(void *addr, size_t len) {
         /* This doesn't actually help as we haven't looked at the flags
          * at the time that it matters (while running constructors) */
         IF_DEBUG(sanity,
-                 debugBelch("Ignoring allocation %p %zd as allocs is NULL\n",
-                            addr, len);)
+                 debugBelch("Ignoring allocation %p %d as allocs is NULL\n",
+                            addr, (int)len);)
     }
 }