]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib api fs: Use base 0 in filename__read_ull
authorJiri Olsa <jolsa@kernel.org>
Fri, 15 Jul 2016 07:29:57 +0000 (09:29 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jul 2016 16:38:05 +0000 (13:38 -0300)
commitab772ea2c5232094e4b1ee059cf9569e29a8e039
tree70520e40723f4534f85df5ef994ce8aa5c1fcace
parentd84921f60d7ddbe81a751d70106ec47077f4822e
tools lib api fs: Use base 0 in filename__read_ull

By using 0 for base, the strtoull() detects the base automatically (see
'man strtoull').

ATM we have just one user of this function, the cpu__get_max_freq
function reading the "cpuinfo_max_freq" sysfs file. It should not get
affected by this change.

Committer note:

This change seems motivated by this discussion:

"[PATCH] [RFC V1]s390/perf: fix 'start' address of module's map"
http://lkml.kernel.org/r/20160711120155.GA29929@krava

I.e. this patches paves the way for filename__read_ull() to be used in a
S/390 related fix.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Songshan Gong <gongss@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1468567797-27564-4-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fs/fs.c