diff options
author | Glenn Kasten <gkasten@google.com> | 2014-04-30 15:53:01 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-04-30 15:53:01 -0700 |
commit | d1adad7acdff96f6518935214d93a655cc447570 (patch) | |
tree | 36e22d8950d9ab5ca4862e6d230780e2355f50a6 /media/libnbaio | |
parent | 029a64e0327ecc1215a3d17ce50f508edae1c4a6 (diff) | |
parent | 0d79b935f533220613f492ab06a12f5cc9591805 (diff) | |
download | frameworks_av-d1adad7acdff96f6518935214d93a655cc447570.zip frameworks_av-d1adad7acdff96f6518935214d93a655cc447570.tar.gz frameworks_av-d1adad7acdff96f6518935214d93a655cc447570.tar.bz2 |
resolved conflicts for merge of 0d79b935 to master
Change-Id: If6de8c1b1d7707918e2a60ea8583749e0127edb8
Diffstat (limited to 'media/libnbaio')
-rw-r--r-- | media/libnbaio/NBLog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libnbaio/NBLog.cpp b/media/libnbaio/NBLog.cpp index 96738a7..4d9a1fa 100644 --- a/media/libnbaio/NBLog.cpp +++ b/media/libnbaio/NBLog.cpp @@ -343,7 +343,7 @@ void NBLog::Reader::dump(int fd, size_t indent) String8 timestamp, body; lost += i; if (lost > 0) { - body.appendFormat("warning: lost %u bytes worth of events", lost); + body.appendFormat("warning: lost %zu bytes worth of events", lost); // TODO timestamp empty here, only other choice to wait for the first timestamp event in the // log to push it out. Consider keeping the timestamp/body between calls to readAt(). dumpLine(timestamp, body); @@ -354,7 +354,7 @@ void NBLog::Reader::dump(int fd, size_t indent) maxSec /= 10; } if (maxSec >= 0) { - timestamp.appendFormat("[%*s]", width + 4, ""); + timestamp.appendFormat("[%*s]", (int) width + 4, ""); } bool deferredTimestamp = false; while (i < avail) { @@ -364,7 +364,7 @@ void NBLog::Reader::dump(int fd, size_t indent) size_t advance = length + 3; switch (event) { case EVENT_STRING: - body.appendFormat("%.*s", length, (const char *) data); + body.appendFormat("%.*s", (int) length, (const char *) data); break; case EVENT_TIMESTAMP: { // already checked that length == sizeof(struct timespec); |