From: Arshad Hussain Date: Mon, 4 Mar 2024 06:53:11 +0000 (-0500) Subject: LU-6142 osd-zfs: Fix style issues for osd_lproc.c X-Git-Tag: 2.15.63~26 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=18bfc25287726367befc42d674d3b5b6f2007d0a;p=fs%2Flustre-release.git LU-6142 osd-zfs: Fix style issues for osd_lproc.c 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 Change-Id: Icb7b2a5805cddbd14458ed71835f5e12f14d18ea Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54266 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/osd-zfs/osd_lproc.c b/lustre/osd-zfs/osd_lproc.c index a81c6d4..e2418fc 100644 --- a/lustre/osd-zfs/osd_lproc.c +++ b/lustre/osd-zfs/osd_lproc.c @@ -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); }