From fd77a467478938e0b0fd7b821d516a83827a3a61 Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Sun, 20 Jan 2013 00:07:48 -0800 Subject: Slightly better printf formats for 32 and 64 bits values. --- tests/test-Handles.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-Handles.cc b/tests/test-Handles.cc index d64fe9b..847cb24 100644 --- a/tests/test-Handles.cc +++ b/tests/test-Handles.cc @@ -30,7 +30,7 @@ void MainTask::Do() { TAssert(failed); IO i(new Input("tests/rtest.txt")); Printer::log(M_STATUS, "Opened file %s:", i->getName()); - Printer::log(M_STATUS, " - size = %lli", i->getSize()); + Printer::log(M_STATUS, " - size = %" PRIi64, i->getSize()); char mtimestr[32]; time_t mtime = i->getMTime(); @@ -50,7 +50,7 @@ void MainTask::Do() { i->rseek(0, SEEK_SET); char * buf1 = (char *) malloc(i->getSize()); ssize_t r = i->read(buf1, s + 15); - Printer::log(M_STATUS, "Read %zi bytes (instead of %lli)", r, s + 15); + Printer::log(M_STATUS, "Read %zi bytes (instead of %" PRIi64 ")", r, s + 15); TAssert(i->isEOF()) char * buf2 = (char *) malloc(i->getSize()); -- cgit v1.2.3