posix-timers: Make signal printks conditional
authorThomas Gleixner <tglx@linutronix.de>
Tue, 23 May 2017 21:27:38 +0000 (23:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 23 May 2017 21:39:57 +0000 (23:39 +0200)
commit43fe8b8eb81eee713400340716cf945f59d21496
tree6322683dc7d6e5970392bde2762d33db325ce054
parent08332893e37af6ae779367e78e444f8f9571511d
posix-timers: Make signal printks conditional

A recent commit added extra printks for CPU/RT limits. This can result in
excessive spam in dmesg.

Make the printks conditional on print_fatal_signals.

Fixes: e7ea7c9806a2 ("rlimits: Print more information when CPU/RT limits are exceeded")
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Arun Raghavan <arun@arunraghavan.net>
kernel/time/posix-cpu-timers.c