aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-08-10 11:41:38 +0200
committerPeter Andersson <[email protected]>2012-08-10 11:41:38 +0200
commit4b70df67d825c1b44ca15a5a4ecd57ad1828ead3 (patch)
treecd31772649b8f1e599e7fbe2cf7b76b1c2dc7a7b /lib/runtime_tools
parentc075ac6484e3d5a93a0d870ab4483d39ae26eaec (diff)
parentf968ff87b1d6fb74237010bffa0390953337425e (diff)
downloadotp-4b70df67d825c1b44ca15a5a4ecd57ad1828ead3.tar.gz
otp-4b70df67d825c1b44ca15a5a4ecd57ad1828ead3.tar.bz2
otp-4b70df67d825c1b44ca15a5a4ecd57ad1828ead3.zip
Merge remote branch 'upstream/maint' into maint
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r--lib/runtime_tools/c_src/trace_ip_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/runtime_tools/c_src/trace_ip_drv.c b/lib/runtime_tools/c_src/trace_ip_drv.c
index 7f7ab8dd9d..6b77128761 100644
--- a/lib/runtime_tools/c_src/trace_ip_drv.c
+++ b/lib/runtime_tools/c_src/trace_ip_drv.c
@@ -590,8 +590,8 @@ static void *my_alloc(size_t size)
void *ret;
if ((ret = driver_alloc(size)) == NULL) {
/* May or may not work... */
- fprintf(stderr, "Could not allocate %d bytes of memory in %s.",
- (int) size, __FILE__);
+ fprintf(stderr, "Could not allocate %lu bytes of memory in %s.",
+ (unsigned long) size, __FILE__);
exit(1);
}
return ret;
@@ -605,8 +605,8 @@ static ErlDrvBinary *my_alloc_binary(int size)
ErlDrvBinary *ret;
if ((ret = driver_alloc_binary(size)) == NULL) {
/* May or may not work... */
- fprintf(stderr, "Could not allocate a binary of %d bytes in %s.",
- (int) size, __FILE__);
+ fprintf(stderr, "Could not allocate a binary of %lu bytes in %s.",
+ (unsigned long) size, __FILE__);
exit(1);
}
return ret;