aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-12-22 14:43:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-12-22 13:15:02 -0500
commit4fe00fac471549047589f62db7b32020821b3634 (patch)
treeef29f6c48d9cd5f64ca709a93256be13e3745d8f
parent245dd6a2e4f45b6cd04728a11bedaf3f490537e5 (diff)
trace-cmd: Fix ull warning
Fix this warning: trace-output.c:832: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'off64_t' Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trace-output.c b/trace-output.c
index d9d1845..943ed84 100644
--- a/trace-output.c
+++ b/trace-output.c
@@ -829,7 +829,8 @@ int tracecmd_append_cpu_data(struct tracecmd_output *handle,
829 } 829 }
830 830
831 for (i = 0; i < cpus; i++) { 831 for (i = 0; i < cpus; i++) {
832 fprintf(stderr, "offset=%llx\n", offsets[i]); 832 fprintf(stderr, "offset=%llx\n",
833 (unsigned long long) offsets[i]);
833 offset = lseek64(handle->fd, offsets[i], SEEK_SET); 834 offset = lseek64(handle->fd, offsets[i], SEEK_SET);
834 if (offset == (off64_t)-1) { 835 if (offset == (off64_t)-1) {
835 warning("could not seek to %lld\n", offsets[i]); 836 warning("could not seek to %lld\n", offsets[i]);