aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2016-05-04 13:20:27 -0400
committerMike Frysinger <vapier@chromium.org>2016-05-04 13:20:27 -0400
commitb5712766f64605f99fce76924180678d7994d56d (patch)
tree94997b18653633e957d5eac91f60826e0da6ec2c /src/common
parentWrite adjusted range back to module (diff)
downloadbreakpad-b5712766f64605f99fce76924180678d7994d56d.tar.xz
macho: fix printf type mismatches
The %ld expects a long signed integer, but we're passing in a size_t. Use %zu which is an unsigned size_t type. R=ted.mielczarek@gmail.com Review URL: https://codereview.chromium.org/1951603002 .
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mac/macho_reader.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/mac/macho_reader.cc b/src/common/mac/macho_reader.cc
index 6d7207ce..52f3c411 100644
--- a/src/common/mac/macho_reader.cc
+++ b/src/common/mac/macho_reader.cc
@@ -181,15 +181,15 @@ void Reader::Reporter::LoadCommandRegionTruncated() {
void Reader::Reporter::LoadCommandsOverrun(size_t claimed, size_t i,
LoadCommandType type) {
- fprintf(stderr, "%s: file's header claims there are %ld"
- " load commands, but load command #%ld",
+ fprintf(stderr, "%s: file's header claims there are %zu"
+ " load commands, but load command #%zu",
filename_.c_str(), claimed, i);
if (type) fprintf(stderr, ", of type %d,", type);
fprintf(stderr, " extends beyond the end of the load command region\n");
}
void Reader::Reporter::LoadCommandTooShort(size_t i, LoadCommandType type) {
- fprintf(stderr, "%s: the contents of load command #%ld, of type %d,"
+ fprintf(stderr, "%s: the contents of load command #%zu, of type %d,"
" extend beyond the size given in the load command's header\n",
filename_.c_str(), i, type);
}