Re: [PATCH v2 08/13] staging: lustre: fix multi line strings

2014-08-12 Thread Srikrishan Malik
On Tue, Aug 12, 2014 at 02:17:07AM +, Drokin, Oleg wrote:
> 
> On Aug 11, 2014, at 2:27 PM, Srikrishan Malik wrote:
> 
> > Fixes the following checkpatch warning:
> > 
> > WARNING: quoted string split across lines
> 
> > diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c 
> > b/drivers/staging/lustre/lustre/mdc/mdc_request.c
> > index 57d903156917..6c691a4763b5 100644
> > --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c
> > +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c
> > @@ -2055,8 +2055,8 @@ static int mdc_hsm_copytool_send(int len, void *val)
> > return -EPROTO;
> > }
> > 
> > -   CDEBUG(D_HSM, " Received message mg=%x t=%d m=%d l=%d actions=%d "
> > -  "on %s\n",
> > +   CDEBUG(D_HSM,
> > +  " Received message mg=%x t=%d m=%d l=%d actions=%d on %s\n",
> >lh->kuc_magic, lh->kuc_transport, lh->kuc_msgtype,
> >lh->kuc_msglen, hal->hal_count, hal->hal_fsname);
> 
> I imagine we can drop the leading space here as well.

ok, I will resend this patch including the suggested change.
I was not sure if we can do this in single patch.

> 
> Thanks.
> 
> Bye,
> Oleg
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH v2 08/13] staging: lustre: fix multi line strings

2014-08-11 Thread Drokin, Oleg

On Aug 11, 2014, at 2:27 PM, Srikrishan Malik wrote:

> Fixes the following checkpatch warning:
> 
> WARNING: quoted string split across lines

> diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c 
> b/drivers/staging/lustre/lustre/mdc/mdc_request.c
> index 57d903156917..6c691a4763b5 100644
> --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c
> +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c
> @@ -2055,8 +2055,8 @@ static int mdc_hsm_copytool_send(int len, void *val)
>   return -EPROTO;
>   }
> 
> - CDEBUG(D_HSM, " Received message mg=%x t=%d m=%d l=%d actions=%d "
> -"on %s\n",
> + CDEBUG(D_HSM,
> +" Received message mg=%x t=%d m=%d l=%d actions=%d on %s\n",
>  lh->kuc_magic, lh->kuc_transport, lh->kuc_msgtype,
>  lh->kuc_msglen, hal->hal_count, hal->hal_fsname);

I imagine we can drop the leading space here as well.

Thanks.

Bye,
Oleg

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH v2 08/13] staging: lustre: fix multi line strings

2014-08-11 Thread Srikrishan Malik
Fixes the following checkpatch warning:

WARNING: quoted string split across lines

Signed-off-by: Srikrishan Malik 
---
 drivers/staging/lustre/lustre/mdc/mdc_locks.c   |  9 +++
 drivers/staging/lustre/lustre/mdc/mdc_reint.c   |  3 +--
 drivers/staging/lustre/lustre/mdc/mdc_request.c | 36 -
 3 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/drivers/staging/lustre/lustre/mdc/mdc_locks.c 
b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
index 4d837d61be65..7f724e3c3f06 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_locks.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
@@ -136,11 +136,10 @@ int mdc_set_lock_data(struct obd_export *exp, __u64 
*lockh, void *data,
struct inode *old_inode = lock->l_resource->lr_lvb_inode;
 
LASSERTF(old_inode->i_state & I_FREEING,
-"Found existing inode %p/%lu/%u state %lu in lock: "
-"setting data to %p/%lu/%u\n", old_inode,
-old_inode->i_ino, old_inode->i_generation,
-old_inode->i_state,
-new_inode, new_inode->i_ino, new_inode->i_generation);
+"Found existing inode %p/%lu/%u state %lu in lock: 
setting data to %p/%lu/%u\n",
+old_inode, old_inode->i_ino, old_inode->i_generation,
+old_inode->i_state, new_inode, new_inode->i_ino,
+new_inode->i_generation);
}
lock->l_resource->lr_lvb_inode = new_inode;
if (bits)
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_reint.c 
b/drivers/staging/lustre/lustre/mdc/mdc_reint.c
index b8c0f482b76f..46800335ca7d 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_reint.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_reint.c
@@ -158,8 +158,7 @@ int mdc_setattr(struct obd_export *exp, struct md_op_data 
*op_data,
 
*mod = obd_mod_alloc();
if (*mod == NULL) {
-   DEBUG_REQ(D_ERROR, req, "Can't allocate "
- "md_open_data");
+   DEBUG_REQ(D_ERROR, req, "Can't allocate md_open_data");
} else {
req->rq_replay = 1;
req->rq_cb_data = *mod;
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c 
b/drivers/staging/lustre/lustre/mdc/mdc_request.c
index 57d903156917..6c691a4763b5 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_request.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c
@@ -517,14 +517,14 @@ int mdc_get_lustre_md(struct obd_export *exp, struct 
ptlrpc_request *req,
struct lov_mds_md *lmm;
 
if (!S_ISREG(md->body->mode)) {
-   CDEBUG(D_INFO, "OBD_MD_FLEASIZE set, should be a "
-  "regular file, but is not\n");
+   CDEBUG(D_INFO,
+  "OBD_MD_FLEASIZE set, should be a regular file, 
but is not\n");
GOTO(out, rc = -EPROTO);
}
 
if (md->body->eadatasize == 0) {
-   CDEBUG(D_INFO, "OBD_MD_FLEASIZE set, "
-  "but eadatasize 0\n");
+   CDEBUG(D_INFO,
+  "OBD_MD_FLEASIZE set, but eadatasize 0\n");
GOTO(out, rc = -EPROTO);
}
lmmsize = md->body->eadatasize;
@@ -537,8 +537,8 @@ int mdc_get_lustre_md(struct obd_export *exp, struct 
ptlrpc_request *req,
GOTO(out, rc);
 
if (rc < sizeof(*md->lsm)) {
-   CDEBUG(D_INFO, "lsm size too small: "
-  "rc < sizeof (*md->lsm) (%d < %d)\n",
+   CDEBUG(D_INFO,
+  "lsm size too small: rc < sizeof (*md->lsm) (%d 
< %d)\n",
   rc, (int)sizeof(*md->lsm));
GOTO(out, rc = -EPROTO);
}
@@ -548,14 +548,14 @@ int mdc_get_lustre_md(struct obd_export *exp, struct 
ptlrpc_request *req,
struct lov_mds_md *lmv;
 
if (!S_ISDIR(md->body->mode)) {
-   CDEBUG(D_INFO, "OBD_MD_FLDIREA set, should be a "
-  "directory, but is not\n");
+   CDEBUG(D_INFO,
+  "OBD_MD_FLDIREA set, should be a directory, but 
is not\n");
GOTO(out, rc = -EPROTO);
}
 
if (md->body->eadatasize == 0) {
-   CDEBUG(D_INFO, "OBD_MD_FLDIREA is set, "
-  "but eadatasize 0\n");
+   CDEBUG(D_INFO,
+  "OBD_MD_FLDIREA is set, but eadatasize 0\n");
return -EPROTO;
}
if (md->body->valid & OBD_MD_MEA) {
@@ -571,8 +571,8 @@