Fix %i64/%u64 mismatches
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/8193b73e Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/8193b73e Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/8193b73e Branch: refs/heads/master Commit: 8193b73efedf0222e99f26b62ee21e18498af6aa Parents: 2748bb8 Author: Nick Wellnhofer <[email protected]> Authored: Fri Mar 25 11:31:10 2016 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Fri Mar 25 11:31:10 2016 +0100 ---------------------------------------------------------------------- core/Lucy/Store/InStream.c | 2 +- core/Lucy/Store/RAMFileHandle.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/8193b73e/core/Lucy/Store/InStream.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/InStream.c b/core/Lucy/Store/InStream.c index b4e1e53..a6d61d8 100644 --- a/core/Lucy/Store/InStream.c +++ b/core/Lucy/Store/InStream.c @@ -203,7 +203,7 @@ S_fill(InStream *self, int64_t amount) { // Throw an error if the requested amount would take us beyond EOF. if (amount > remaining) { - THROW(ERR, "Read past EOF of %o (pos: %u64 len: %u64 request: %u64)", + THROW(ERR, "Read past EOF of %o (pos: %i64 len: %i64 request: %i64)", ivars->filename, virtual_file_pos, ivars->len, amount); } http://git-wip-us.apache.org/repos/asf/lucy/blob/8193b73e/core/Lucy/Store/RAMFileHandle.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/RAMFileHandle.c b/core/Lucy/Store/RAMFileHandle.c index 8db9f60..7895d25 100644 --- a/core/Lucy/Store/RAMFileHandle.c +++ b/core/Lucy/Store/RAMFileHandle.c @@ -124,7 +124,7 @@ RAMFH_Read_IMP(RAMFileHandle *self, char *dest, int64_t offset, size_t len) { return false; } else if (end > ivars->len) { - Err_set_error(Err_new(Str_newf("Attempt to read %u64 bytes starting at %i64 goes past EOF %u64", + Err_set_error(Err_new(Str_newf("Attempt to read %u64 bytes starting at %i64 goes past EOF %i64", (uint64_t)len, offset, ivars->len))); return false; }
