diff options
author | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-20 00:07:48 -0800 |
---|---|---|
committer | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-20 00:07:48 -0800 |
commit | fd77a467478938e0b0fd7b821d516a83827a3a61 (patch) | |
tree | 62683896f28e131eaec9597c3617cc7157ead227 /tests | |
parent | 8a37c7ce67e049feafc981e6386477497102ac93 (diff) |
Slightly better printf formats for 32 and 64 bits values.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Handles.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<Handle> 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()); |