From bfd7a28c3966c09e5f7e8f938fdc75c9afbbb9a5 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Tue, 2 Sep 2008 23:37:12 +0000 Subject: [PATCH] Branch b1_6 Remove use of printk() lustre core code. b=16517 i=nikita i=shadow (yury original patch) --- lustre/obdclass/class_obd.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 4493250128..dc99873646 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -522,16 +522,12 @@ int init_obdclass(void) int i, err; #ifdef __KERNEL__ int lustre_register_fs(void); - - printk(KERN_INFO "Lustre: OBD class driver, http://www.lustre.org/\n"); - printk(KERN_INFO " Lustre Version: "LUSTRE_VERSION_STRING"\n"); - printk(KERN_INFO " Build Version: "BUILD_VERSION"\n"); -#else - CDEBUG(D_INFO, "Lustre: OBD class driver, http://www.lustre.org/\n"); - CDEBUG(D_INFO, " Lustre Version: "LUSTRE_VERSION_STRING"\n"); - CDEBUG(D_INFO, " Build Version: "BUILD_VERSION"\n"); #endif + LCONSOLE_INFO("OBD class driver, http://www.lustre.org/\n"); + LCONSOLE_INFO(" Lustre Version: "LUSTRE_VERSION_STRING"\n"); + LCONSOLE_INFO(" Build Version: "BUILD_VERSION"\n"); + spin_lock_init(&obd_types_lock); cfs_waitq_init(&obd_race_waitq); obd_zombie_impexp_init(); -- GitLab