aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorFatih Akca <fatihakca5@gmail.com>2017-02-20 20:50:32 +0300
committerMichael Bestas <mkbestas@lineageos.org>2018-06-10 15:00:42 +0300
commit9a4a0c793912f079badf51d012c5297cb60733c3 (patch)
treea2561f1ac71559f62af036f98032bdbfb70ff8df /net/lapb/lapb_subr.c
parent60a78fc469b260996ad2c8bdba57eb0de9b21894 (diff)
mm: swap_ratio: Only call trace_printk() in debug
* Use DEBUG preprocessor macro to get rid of the message seen below on dmesg. ********************************************************** ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** ** ** ** trace_printk() being used. Allocating extra memory. ** ** ** ** This means that this is a DEBUG kernel and it is ** ** unsafe for produciton use. ** ** ** ** If you see this message and you are not debugging ** ** the kernel, report this immediately to your vendor! ** ** ** ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** ********************************************************** The usage of trace_printk() causes remarkable CPU load and memory waste on production systems, as described here: https://lkml.org/lkml/2014/5/28/496 Change-Id: Idf89e2a1405edf2efa6526d18892eaa7e9a6221b
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions