From: adilger Date: Tue, 2 Sep 2008 23:37:12 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~290 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bfd7a28c3966c09e5f7e8f938fdc75c9afbbb9a5;p=fs%2Flustre-release.git Branch b1_6 Remove use of printk() lustre core code. b=16517 i=nikita i=shadow (yury original patch) --- diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 4493250..dc99873 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();