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>
strscpy(path, root, len_root);
if (p > path + len_root) {
s = path + len_root;
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';
}
*(path + len_root + len_path) = '\0';
NULL, &osd->od_dt_dev);
if (IS_ERR(osd->od_proc_entry)) {
rc = PTR_ERR(osd->od_proc_entry);
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);
}
osd->od_proc_entry = NULL;
GOTO(out, rc);
}