OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0097d1a
)
stats_log_api_gen: Minor printf format fix
author
Greg Kaiser
<gkaiser@google.com>
Mon, 8 Apr 2019 13:25:21 +0000
(06:25 -0700)
committer
Greg Kaiser
<gkaiser@google.com>
Mon, 8 Apr 2019 13:25:21 +0000
(06:25 -0700)
We use "%zu" for a size_t argumet.
Test: TreeHugger
Change-Id: I02916829dfb71a63f78eda0d45129b4dc0732a82
tools/stats_log_api_gen/main.cpp
patch
|
blob
|
history
diff --git
a/tools/stats_log_api_gen/main.cpp
b/tools/stats_log_api_gen/main.cpp
index
4e6d073
..
1aad4be
100644
(file)
--- 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] = %
l
u;\n", signature.size() + 2);
+ fprintf(out, " buff[pos + 1] = %
z
u;\n", signature.size() + 2);
fprintf(out, " pos += LIST_TYPE_OVERHEAD;\n");
// Write timestamp.