summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-02-27 16:06:00 -0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-02-27 16:06:00 -0800
commit276053b291204fc428b75a3c3f66215de41b3c8b (patch)
tree44c9c1b6372fdb675e6b3dccce72bf7a96757e4e /libs
parent3111751dd18eb2df88458a1dd319c79d0dc12266 (diff)
downloadbuild-276053b291204fc428b75a3c3f66215de41b3c8b.zip
build-276053b291204fc428b75a3c3f66215de41b3c8b.tar.gz
build-276053b291204fc428b75a3c3f66215de41b3c8b.tar.bz2
Use %zd instead of %d for variables of type ssize_t
To generate correct 64-bit code (with -m64) Change-Id: I7cd5e0c7e8bdcb9ea3bf73df0dcda55f1cb56eec
Diffstat (limited to 'libs')
-rw-r--r--libs/host/CopyFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/host/CopyFile.c b/libs/host/CopyFile.c
index 23f1260..ca52565 100644
--- a/libs/host/CopyFile.c
+++ b/libs/host/CopyFile.c
@@ -137,7 +137,7 @@ static int copyFileContents(const char* dst, int dstFd, const char* src, int src
return -1;
}
if (writeCount != readCount) {
- fprintf(stderr, "acp: partial write to '%s' (%d of %d)\n",
+ fprintf(stderr, "acp: partial write to '%s' (%zd of %zd)\n",
dst, writeCount, readCount);
return -1;
}