Loading cmds/atrace/atrace.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <inttypes.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> Loading Loading @@ -368,7 +369,7 @@ static bool pokeBinderServices() static bool setTagsProperty(uint64_t tags) { char buf[64]; snprintf(buf, 64, "%#llx", tags); snprintf(buf, 64, "%#" PRIx64, tags); if (property_set(k_traceTagsProperty, buf) < 0) { fprintf(stderr, "error setting trace tags system property\n"); return false; Loading Loading @@ -665,7 +666,7 @@ static void dumpTrace() close(traceFD); } static void handleSignal(int signo) static void handleSignal(int /*signo*/) { if (!g_nohup) { g_traceAborted = true; Loading cmds/flatland/Composers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -122,12 +122,12 @@ public: virtual void tearDown() { } virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) { virtual bool compose(GLuint /*texName*/, const sp<GLConsumer>& /*glc*/) { return true; } protected: virtual bool setUp(GLHelper* helper) { virtual bool setUp(GLHelper* /*helper*/) { return true; } Loading cmds/flatland/GLHelper.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -332,7 +332,7 @@ static bool compileShader(GLenum shaderType, const char* src, static void printShaderSource(const char* const* src) { for (size_t i = 0; i < MAX_SHADER_LINES && src[i] != NULL; i++) { fprintf(stderr, "%3d: %s\n", i+1, src[i]); fprintf(stderr, "%3zu: %s\n", i+1, src[i]); } } Loading cmds/flatland/Main.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -600,7 +600,7 @@ static bool runTest(const BenchmarkDesc b, size_t run) { uint32_t runHeight = b.runHeights[run]; uint32_t runWidth = b.width * runHeight / b.height; printf(" %-*s | %4d x %4d | ", g_BenchmarkNameLen, b.name, printf(" %-*s | %4d x %4d | ", static_cast<int>(g_BenchmarkNameLen), b.name, runWidth, runHeight); fflush(stdout); Loading Loading @@ -690,8 +690,9 @@ static void printResultsTableHeader() { size_t len = strlen(scenario); size_t leftPad = (g_BenchmarkNameLen - len) / 2; size_t rightPad = g_BenchmarkNameLen - len - leftPad; printf(" %*s%s%*s | Resolution | Time (ms)\n", leftPad, "", "Scenario", rightPad, ""); printf(" %*s%s%*s | Resolution | Time (ms)\n", static_cast<int>(leftPad), "", "Scenario", static_cast<int>(rightPad), ""); } // Run ALL the benchmarks! Loading cmds/installd/commands.c +2 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ ** limitations under the License. */ #include <inttypes.h> #include <sys/capability.h> #include "installd.h" #include <diskusage/dirsize.h> Loading Loading @@ -157,7 +158,7 @@ int fix_uid(const char *pkgname, uid_t uid, gid_t gid) if (stat(pkgdir, &s) < 0) return -1; if (s.st_uid != 0 || s.st_gid != 0) { ALOGE("fixing uid of non-root pkg: %s %lu %lu\n", pkgdir, s.st_uid, s.st_gid); ALOGE("fixing uid of non-root pkg: %s %" PRIu32 " %" PRIu32 "\n", pkgdir, s.st_uid, s.st_gid); return -1; } Loading Loading
cmds/atrace/atrace.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <inttypes.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> Loading Loading @@ -368,7 +369,7 @@ static bool pokeBinderServices() static bool setTagsProperty(uint64_t tags) { char buf[64]; snprintf(buf, 64, "%#llx", tags); snprintf(buf, 64, "%#" PRIx64, tags); if (property_set(k_traceTagsProperty, buf) < 0) { fprintf(stderr, "error setting trace tags system property\n"); return false; Loading Loading @@ -665,7 +666,7 @@ static void dumpTrace() close(traceFD); } static void handleSignal(int signo) static void handleSignal(int /*signo*/) { if (!g_nohup) { g_traceAborted = true; Loading
cmds/flatland/Composers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -122,12 +122,12 @@ public: virtual void tearDown() { } virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) { virtual bool compose(GLuint /*texName*/, const sp<GLConsumer>& /*glc*/) { return true; } protected: virtual bool setUp(GLHelper* helper) { virtual bool setUp(GLHelper* /*helper*/) { return true; } Loading
cmds/flatland/GLHelper.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -332,7 +332,7 @@ static bool compileShader(GLenum shaderType, const char* src, static void printShaderSource(const char* const* src) { for (size_t i = 0; i < MAX_SHADER_LINES && src[i] != NULL; i++) { fprintf(stderr, "%3d: %s\n", i+1, src[i]); fprintf(stderr, "%3zu: %s\n", i+1, src[i]); } } Loading
cmds/flatland/Main.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -600,7 +600,7 @@ static bool runTest(const BenchmarkDesc b, size_t run) { uint32_t runHeight = b.runHeights[run]; uint32_t runWidth = b.width * runHeight / b.height; printf(" %-*s | %4d x %4d | ", g_BenchmarkNameLen, b.name, printf(" %-*s | %4d x %4d | ", static_cast<int>(g_BenchmarkNameLen), b.name, runWidth, runHeight); fflush(stdout); Loading Loading @@ -690,8 +690,9 @@ static void printResultsTableHeader() { size_t len = strlen(scenario); size_t leftPad = (g_BenchmarkNameLen - len) / 2; size_t rightPad = g_BenchmarkNameLen - len - leftPad; printf(" %*s%s%*s | Resolution | Time (ms)\n", leftPad, "", "Scenario", rightPad, ""); printf(" %*s%s%*s | Resolution | Time (ms)\n", static_cast<int>(leftPad), "", "Scenario", static_cast<int>(rightPad), ""); } // Run ALL the benchmarks! Loading
cmds/installd/commands.c +2 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ ** limitations under the License. */ #include <inttypes.h> #include <sys/capability.h> #include "installd.h" #include <diskusage/dirsize.h> Loading Loading @@ -157,7 +158,7 @@ int fix_uid(const char *pkgname, uid_t uid, gid_t gid) if (stat(pkgdir, &s) < 0) return -1; if (s.st_uid != 0 || s.st_gid != 0) { ALOGE("fixing uid of non-root pkg: %s %lu %lu\n", pkgdir, s.st_uid, s.st_gid); ALOGE("fixing uid of non-root pkg: %s %" PRIu32 " %" PRIu32 "\n", pkgdir, s.st_uid, s.st_gid); return -1; } Loading