diff options
author | Michael Santos <[email protected]> | 2012-05-08 12:55:05 -0400 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-05-09 11:57:47 +0200 |
commit | 408e7760fc63a652c3ceb6479f9c7f5b3377942f (patch) | |
tree | 48d3d480fc6af7a40ccb102ee466818341301f19 /erts/emulator/drivers/common/efile_drv.c | |
parent | 75dbcf3ce8cb63dea0d674b67cb5d3d64d250e2a (diff) | |
download | otp-408e7760fc63a652c3ceb6479f9c7f5b3377942f.tar.gz otp-408e7760fc63a652c3ceb6479f9c7f5b3377942f.tar.bz2 otp-408e7760fc63a652c3ceb6479f9c7f5b3377942f.zip |
Correct formating in exit error messages
Ensure displayed sizes are not negative.
Diffstat (limited to 'erts/emulator/drivers/common/efile_drv.c')
-rw-r--r-- | erts/emulator/drivers/common/efile_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c index 603d1d47b6..347247ee7b 100644 --- a/erts/emulator/drivers/common/efile_drv.c +++ b/erts/emulator/drivers/common/efile_drv.c @@ -522,7 +522,7 @@ static void *ef_safe_alloc(Uint s) static void *ef_safe_realloc(void *op, Uint s) { void *p = EF_REALLOC(op, s); - if (!p) erl_exit(1, "efile drv: Can't reallocate %d bytes of memory\n", s); + if (!p) erl_exit(1, "efile drv: Can't reallocate %lu bytes of memory\n", (unsigned long)s); return p; } |