OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3111751
)
Use %zd instead of %d for variables of type ssize_t
author
Andrew Hsieh
<andrewhsieh@google.com>
Tue, 28 Feb 2012 00:06:00 +0000
(16:06 -0800)
committer
Andrew Hsieh
<andrewhsieh@google.com>
Tue, 28 Feb 2012 00:06:00 +0000
(16:06 -0800)
To generate correct 64-bit code (with -m64)
Change-Id: I7cd5e0c7e8bdcb9ea3bf73df0dcda55f1cb56eec
libs/host/CopyFile.c
patch
|
blob
|
history
diff --git
a/libs/host/CopyFile.c
b/libs/host/CopyFile.c
index
23f1260
..
ca52565
100644
(file)
--- 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 %z
d)\n",
dst, writeCount, readCount);
return -1;
}