Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 242c20ef authored by Greg Kaiser's avatar Greg Kaiser Committed by Tej Singh
Browse files

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 f87e9383)
parent 35ed6c34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.