From f87e93835a9cbebec2a46124f0f0b7e967de0d52 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Mon, 8 Apr 2019 06:25:21 -0700 Subject: [PATCH] stats_log_api_gen: Minor printf format fix We use "%zu" for a size_t argumet. Test: TreeHugger Change-Id: I02916829dfb71a63f78eda0d45129b4dc0732a82 --- tools/stats_log_api_gen/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/stats_log_api_gen/main.cpp b/tools/stats_log_api_gen/main.cpp index 4e6d07303b021..1aad4be5d66f6 100644 --- a/tools/stats_log_api_gen/main.cpp +++ b/tools/stats_log_api_gen/main.cpp @@ -1177,7 +1177,7 @@ static int write_java_method_for_module( // Initialize the buffer with list data type. fprintf(out, " buff[pos] = LIST_TYPE;\n"); - fprintf(out, " buff[pos + 1] = %lu;\n", signature.size() + 2); + fprintf(out, " buff[pos + 1] = %zu;\n", signature.size() + 2); fprintf(out, " pos += LIST_TYPE_OVERHEAD;\n"); // Write timestamp.