aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/c_src
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2012-07-18 11:01:31 +0200
committerHenrik Nord <[email protected]>2012-07-18 11:01:36 +0200
commitf82a553307c865440a01ff38e9b9d6482fe55550 (patch)
treec8d303dbb368744b0d8423f1ad91e6421d9dbce2 /lib/runtime_tools/c_src
parentd946588dbf7c84b69f85947237ac6ca64c8560ad (diff)
parent408e7760fc63a652c3ceb6479f9c7f5b3377942f (diff)
downloadotp-f82a553307c865440a01ff38e9b9d6482fe55550.tar.gz
otp-f82a553307c865440a01ff38e9b9d6482fe55550.tar.bz2
otp-f82a553307c865440a01ff38e9b9d6482fe55550.zip
Merge branch 'ms/correct-formating-in-exit' into maint
* ms/correct-formating-in-exit: Correct formating in exit error messages OTP-10148
Diffstat (limited to 'lib/runtime_tools/c_src')
-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;