]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: lustre: libcfs: create array of debug names
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 5 Apr 2016 01:36:49 +0000 (21:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 03:47:04 +0000 (20:47 -0700)
commit6f11cd978e59551de52e018c7bf8fc9d6ae6366c
treef962f954d2778913adc0e1a914d784e3ab74a4f6
parent66fbe4ef96790b55b4218b0281cc26157993552b
staging: lustre: libcfs: create array of debug names

Instead of a using a growing case statement to handle
more debugging options create a array to map debug
flags to string names.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3647
Reviewed-on: http://review.whamcloud.com/7243
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
drivers/staging/lustre/lnet/libcfs/debug.c