citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit b822f4952aae737c7974eda39df33b3456557162
parent 049cdd2384d85572ab5514551c72f93987c5ab0a
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 27 Nov 2016 13:55:29 -0700

src: don't use %jd for off_t in printf

Diffstat:
Msrc/rt.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rt.c b/src/rt.c @@ -52,14 +52,14 @@ shm_extend(size_t requested_bytes) /* Increase file length. */ if (ftruncate(shm_fd, shm_len + aligned_bytes) < 0) - err(1, "ftruncate from %jd to %jd", shm_len, shm_len + aligned_bytes); + err(1, "ftruncate from %lld to %llu", shm_len, shm_len + aligned_bytes); /* Increase memory mapping length. */ shm = mmap(NULL, requested_bytes, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, shm_len); if (shm == MAP_FAILED) - err(1, "mmap %zu bytes @ %jd", requested_bytes, shm_len); + err(1, "mmap %zu bytes @ %llu", requested_bytes, shm_len); return shm; }