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

Commit c1b9034d authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf tools: Fix dwarf-aux.c compilation on i386



Replacing %lu format strings for Dwarf_Addr type with PRIu64 as it fits
for Dwarf_Addr (defined as uint64_t) type and works also on both 32/64
bits.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1431706991-15646-1-git-send-email-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f812d304
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -994,11 +994,11 @@ static int die_get_var_innermost_scope(Dwarf_Die *sp_die, Dwarf_Die *vr_die,
		end -= entry;

		if (first) {
			strbuf_addf(buf, "@<%s+[%lu-%lu",
			strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64,
				name, start, end);
			first = false;
		} else {
			strbuf_addf(buf, ",%lu-%lu",
			strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64,
				start, end);
		}
	}
@@ -1057,11 +1057,11 @@ int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf)
		start -= entry;
		end -= entry;
		if (first) {
			strbuf_addf(buf, "@<%s+[%lu-%lu",
			strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64,
				name, start, end);
			first = false;
		} else {
			strbuf_addf(buf, ",%lu-%lu",
			strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64,
				start, end);
		}
	}