@@ -587,7 +587,7 @@ void KsSession::saveDualMarker(KsDualMarkerSM *dm)
*/
void KsSession::loadDualMarker(KsDualMarkerSM *dm, KsTraceGraph *graphs)
{
- uint64_t pos;
+ size_t pos;
dm->reset();
dm->setState(DualMarkerState::A);
@@ -567,7 +567,7 @@ static bool kshark_trace_file_from_json(const char **file, const char **name,
}
if (st.st_mtime != time) {
- fprintf(stderr, "Timestamp mismatch! (%li!=%li)\nFile %s\n",
+ fprintf(stderr, "Timestamp mismatch! (%" PRIu64 "!=%li)\nFile %s\n",
time, st.st_mtime, file_str);
return false;
}
@@ -1025,7 +1025,7 @@ static char *tepdata_dump_entry(struct kshark_data_stream *stream,
free(info);
} else {
n = asprintf(&entry_str,
- "%i; %li; [UNKNOWN TASK]-%i; CPU %i; ; [UNKNOWN EVENT]; [NO INFO]; 0x%x",
+ "%i; %" PRIu64 "; [UNKNOWN TASK]-%i; CPU %i; ; [UNKNOWN EVENT]; [NO INFO]; 0x%x",
entry->stream_id,
entry->ts,
interface->get_pid(stream, entry),
All warnings and errors when building on 32bit Linux systems are fixed. Reported-by: Alan Mikhak <amikhak@wirelessfabric.com> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- src/KsSession.cpp | 2 +- src/libkshark-configio.c | 2 +- src/libkshark-tepdata.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)