Skip to content

Commit

Permalink
Use %zd instead of %d for variables of type ssize_t
Browse files Browse the repository at this point in the history
To generate correct 64-bit code (with -m64)

Change-Id: I7cd5e0c7e8bdcb9ea3bf73df0dcda55f1cb56eec
  • Loading branch information
Andrew Hsieh committed Feb 28, 2012
1 parent 3111751 commit 276053b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/host/CopyFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 276053b

Please sign in to comment.