]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: debug: clean up console messages
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 4 May 2016 14:28:57 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2016 12:01:14 +0000 (14:01 +0200)
Clean up overly verbose console error messages, improve others.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1095
Reviewed-on: http://review.whamcloud.com/8617
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
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/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/obdclass/obd_mount.c

index 44dd3f31fd3b2c636032a954be51ce79ef5e7e20..96c7e9fc6e5f7bdf4c2e6a7bce7461fa815c3d4a 100644 (file)
@@ -897,10 +897,8 @@ int ll_fill_super(struct super_block *sb, struct vfsmount *mnt)
        cfg->cfg_callback = class_config_llog_handler;
        /* set up client obds */
        err = lustre_process_log(sb, profilenm, cfg);
-       if (err < 0) {
-               CERROR("Unable to process log: %d\n", err);
+       if (err < 0)
                goto out_free;
-       }
 
        /* Profile set with LCFG_MOUNTOPT so we can find our mdc and osc obds */
        lprof = class_get_profile(profilenm);
index 9474aa902bd0880ba77f836bada2af4d15921a73..e0c90adc72a7d11c09cea68a75564c5b82a3b50e 100644 (file)
@@ -102,7 +102,7 @@ int lustre_process_log(struct super_block *sb, char *logname,
                LCONSOLE_ERROR_MSG(0x15b, "%s: The configuration from log '%s' failed from the MGS (%d).  Make sure this client and the MGS are running compatible versions of Lustre.\n",
                                   mgc->obd_name, logname, rc);
 
-       if (rc)
+       else if (rc)
                LCONSOLE_ERROR_MSG(0x15c, "%s: The configuration from log '%s' failed (%d). This may be the result of communication errors between this node and the MGS, a bad configuration, or other errors. See the syslog for more information.\n",
                                   mgc->obd_name, logname,
                                   rc);