diff options
author | Greg Kaiser <gkaiser@google.com> | 2019-04-08 06:25:21 -0700 |
---|---|---|
committer | Tej Singh <singhtejinder@google.com> | 2019-04-09 21:01:12 +0000 |
commit | 242c20ef390b1844f13c203ae30386949ba3d592 (patch) | |
tree | e9ebc9801b0b599b1fef0009224e5f969abc02c0 /tools/stats_log_api_gen/main.cpp | |
parent | 35ed6c34c7274333911b4add55c29aa8e5538cf7 (diff) |
stats_log_api_gen: Minor printf format fix
We use "%zu" for a size_t argumet.
Test: TreeHugger
Bug: 126134616
Change-Id: I02916829dfb71a63f78eda0d45129b4dc0732a82
Merged-In: I02916829dfb71a63f78eda0d45129b4dc0732a82
(cherry picked from commit f87e93835a9cbebec2a46124f0f0b7e967de0d52)
Diffstat (limited to 'tools/stats_log_api_gen/main.cpp')
-rw-r--r-- | tools/stats_log_api_gen/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/stats_log_api_gen/main.cpp b/tools/stats_log_api_gen/main.cpp index 4e6d07303b02..1aad4be5d66f 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. |