aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-08-31 10:21:26 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2016-09-08 12:46:43 +0200
commitcfb0d5a6c7eed2f13bd31c23e5c7598cbd1c28ec (patch)
tree67c6eb0087a4c947088109c074b2e9240a2ea9ca
parentcc965781d34287fbc0233f054691a3a51f2c7e29 (diff)
Use %zu format specifier for size_t types
Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--tracefile_idlestat.c2
-rw-r--r--tracefile_tracecmd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tracefile_idlestat.c b/tracefile_idlestat.c
index 3430693..01b1b26 100644
--- a/tracefile_idlestat.c
+++ b/tracefile_idlestat.c
@@ -166,7 +166,7 @@ void load_text_data_lines(FILE *f, char *buffer, struct cpuidle_datas *datas)
}
} while (fgets(buffer, BUFSIZE, f));
- fprintf(stderr, "Log is %lf secs long with %zd events\n",
+ fprintf(stderr, "Log is %lf secs long with %zu events\n",
end - begin, count);
}
diff --git a/tracefile_tracecmd.c b/tracefile_tracecmd.c
index 586d3c5..eda7b6b 100644
--- a/tracefile_tracecmd.c
+++ b/tracefile_tracecmd.c
@@ -50,7 +50,7 @@ void tracecmd_load_text_data_lines(FILE *f, char *buffer, struct cpuidle_datas *
}
} while (fgets(buffer, BUFSIZE, f));
- fprintf(stderr, "Log is %lf secs long with %zd events\n",
+ fprintf(stderr, "Log is %lf secs long with %zu events\n",
end - begin, count);
}