]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ib/core: change error prints in cm module to debug prints.
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 25 Feb 2013 12:04:18 +0000 (14:04 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:09 +0000 (14:45 -0700)
commitec56d7af3115e119c5fb965bd2017504ead03dcd
treefa02abf8b5d38e75130186f8e268337311962412
parent625f25a2c52bf261c15fa1d2586174e2c5c960fd
ib/core: change error prints in cm module to debug prints.

commit acd10b49 added prints to the cm module.
These, however, should really be debug prints, to be activated
when it is necessary to track down some cm problem.

To activate the debug mechanism, you need to do the following:
1. mount the debug fs (do this once)
   mount -t debugfs none /sys/kernel/debug/

2. activate debug output for ib_cm:
   echo -n "module ib_cm +p" > /sys/kernel/debug/dynamic_debug/control

3. To de-activate debug output when you are done, do the following
   echo -n "module ib_cm -p" > /sys/kernel/debug/dynamic_debug/control

You will see the debug output in dmesg.

This change was suggested by Moni Shoua (monis@mellanox.com)

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/core/cm.c