Whamcloud - gitweb
LU-6142 osd-zfs: Fix style issues for osd_lproc.c 66/54266/3
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 4 Mar 2024 06:53:11 +0000 (01:53 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:50:54 +0000 (06:50 +0000)
This patch fixes issues reported by checkpatch
for file lustre/osd-zfs/osd_lproc.c

Test-Parameters: trivial fstype=zfs
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Icb7b2a5805cddbd14458ed71835f5e12f14d18ea
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54266
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-zfs/osd_lproc.c

index a81c6d4..e2418fc 100644 (file)
@@ -70,7 +70,8 @@ static void osd_symlink_brw_stats(struct osd_device *osd)
        strscpy(path, root, len_root);
        if (p > path + len_root) {
                s = path + len_root;
-               while ((*s++ = *p++) != '\0');
+               while ((*s++ = *p++) != '\0')
+                       ;
        }
 
        *(path + len_root + len_path) = '\0';
@@ -436,7 +437,7 @@ int osd_procfs_init(struct osd_device *osd, const char *name)
                                              NULL, &osd->od_dt_dev);
        if (IS_ERR(osd->od_proc_entry)) {
                rc = PTR_ERR(osd->od_proc_entry);
-               CERROR("Error %d setting up lprocfs for %s\n", rc, name);
+               CERROR("%s: error setting up lprocfs: rc = %d\n", name, rc);
                osd->od_proc_entry = NULL;
                GOTO(out, rc);
        }