aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorMurilo Opsfelder Araujo <muriloo@linux.ibm.com>2018-08-01 18:33:17 -0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-08 00:32:29 +1000
commit49d8f2011dddac642a20491a698ad07059ed6096 (patch)
tree2acaeee151714ce6c634d21f8692fa6a7bdd0c1a /include/linux/mm_types.h
parentpowerpc/traps: Use an explicit ratelimit state for show_signal_msg() (diff)
downloadwireguard-linux-49d8f2011dddac642a20491a698ad07059ed6096.tar.xz
wireguard-linux-49d8f2011dddac642a20491a698ad07059ed6096.zip
powerpc/traps: Use %lx format in show_signal_msg()
Use %lx format to print registers. This avoids having two different formats and avoids checking for MSR_64BIT, improving readability of the function. Even though we could have used %px, which is functionally equivalent to %lx as per Documentation/core-api/printk-formats.rst, it is not semantically correct because the data printed are not pointers. And using %px requires casting data to (void *). Besides that, %lx matches the format used in show_regs(). Before this patch: pandafault[4808]: unhandled signal 11 at 0000000010000718 nip 0000000010000574 lr 00007fff935e7a6c code 2 After this patch: pandafault[4732]: unhandled signal 11 at 10000718 nip 10000574 lr 7fff86697a6c code 2 Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/linux/mm_types.h')
0 files changed, 0 insertions, 0 deletions