aboutsummaryrefslogtreecommitdiffstats
path: root/mm/bounce.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2011-10-04 14:13:19 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-18 11:22:00 -0700
commit431625dac14de7152235f2f9934d70a9b0f9df83 (patch)
tree8c08388a455e5fba84596f90942c756765967b47 /mm/bounce.c
parentbd22c01e845ad22a89ae25005b38d28e6690c27a (diff)
downloadkernel_goldelico_gta04-431625dac14de7152235f2f9934d70a9b0f9df83.zip
kernel_goldelico_gta04-431625dac14de7152235f2f9934d70a9b0f9df83.tar.gz
kernel_goldelico_gta04-431625dac14de7152235f2f9934d70a9b0f9df83.tar.bz2
dynamic_debug: use a single printk() to emit messages
We were using KERN_CONT to combine messages with their prefix. However, KERN_CONT is not smp safe, in the sense that it can interleave messages. This interleaving can result in printks coming out at the wrong loglevel. With the high frequency of printks that dynamic debug can produce this is not desirable. So make dynamic_emit_prefix() fill a char buf[64] instead of doing a printk directly. If we enable printing out of function, module, line, or pid info, they are placed in this 64 byte buffer. In my testing 64 bytes was enough size to fulfill all requests. Even if it's not, we can match up the printk itself to see where it's from, so to me this is no big deal. [akpm@linux-foundation.org: convert dangerous macro to C] Signed-off-by: Jason Baron <jbaron@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/bounce.c')
0 files changed, 0 insertions, 0 deletions