diff options
| author | Mathieu Malaterre <[email protected]> | 2018-05-29 21:20:01 +0200 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-06-02 01:48:11 +1000 |
| commit | 8af1da40669609707303eecdb857f48a5ba5792d (patch) | |
| tree | e26877230b9876f1da9073d747070722046c41c3 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 9a6d2022bacd8fca0be6297459a02dfd28dad6ba (diff) | |
powerpc/prom: Fix %u/%llx usage since prom_printf() change
In commit eae5f709a4d7 ("powerpc: Add __printf verification to
prom_printf") __printf attribute was added to prom_printf(), which
means GCC started warning about type/format mismatches. As part of
that commit we changed some "%lx" formats to "%llx" where the type is
actually unsigned long long.
Unfortunately prom_printf() doesn't know how to print "%llx", it just
prints a literal "lx", eg:
reserved memory map:
lx - lx
lx - lx
prom_printf() also doesn't know how to print "%u" (only "%lu"), it
just prints a literal "u", eg:
Max number of cores passed to firmware: u (NR_CPUS = 2048)
Instead of:
Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
This commit adds support for the missing formatters.
Fixes: eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf")
Reported-by: Michael Ellerman <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Mathieu Malaterre <[email protected]>
Tested-by: Michael Ellerman <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions