mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Arushi Singhal <arushisinghal19971997@gmail.com>
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [Outreachy kernel] Re: [PATCH] Staging: ks7010: There should be no spaces at the start of a line
Date: Sun, 19 Feb 2017 16:34:50 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.2.20.1702191633190.2363@hadrien> (raw)
In-Reply-To: <df1dbfa6-0823-4899-b1b7-4358b18575be@googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 3314 bytes --]



On Sun, 19 Feb 2017, Arushi Singhal wrote:

>
> Hi Greg
> I think we cannot indent the text otherwise, the print statement will be
> different as it should be

There are newlines in the printed string.  I suspect that there is no need
to print them all at once.

Actually, your change removed spaces inside a string, so it did change the
form of the poutput.

Also, remember not to top post :)

julia

> Thanks
>
> On Saturday, February 18, 2017 at 10:27:19 PM UTC+5:30, gregkh wrote:
>       On Sat, Feb 18, 2017 at 10:10:02PM +0530, Arushi Singhal wrote:
>       > The following patch the checkpatch.pl warning:
>       > drivers/staging/ks7010/ks_hostif.c warning: please, no spaces
>       at the
>       > start of a line
>       >
>       > Signed-off-by: Arushi Singhal <arushising...@gmail.com>
>       > ---
>       >  drivers/staging/ks7010/ks_hostif.c | 4 ++--
>       >  1 file changed, 2 insertions(+), 2 deletions(-)
>       >
>       > diff --git a/drivers/staging/ks7010/ks_hostif.c
>       b/drivers/staging/ks7010/ks_hostif.c
>       > index 819e08b5fa91..3b2e28749b63 100644
>       > --- a/drivers/staging/ks7010/ks_hostif.c
>       > +++ b/drivers/staging/ks7010/ks_hostif.c
>       > @@ -191,8 +191,8 @@ int get_current_ap(struct ks_wlan_private
>       *priv, struct link_ap_info_t *ap_info)
>       >          }
>       >          DPRINTK(4, "\n    Link AP\n");
>       >          DPRINTK(4, "    bssid=%02X:%02X:%02X:%02X:%02X:%02X\n
>       \
>       > -   essid=%s\n  
>        rate_set=%02X,%02X,%02X,%02X,%02X,%02X,%02X,%02X\n  
>        channel=%d\n \
>       > -   rssi=%d\n    sq=%d\n    capability=%04X\n", ap->bssid[0],
>       ap->bssid[1], ap->bssid[2], ap->bssid[3], ap->bssid[4],
>       ap->bssid[5], &(ap->ssid.body[0]), ap->rate_set.body[0],
>       ap->rate_set.body[1], ap->rate_set.body[2],
>       ap->rate_set.body[3], ap->rate_set.body[4],
>       ap->rate_set.body[5], ap->rate_set.body[6],
>       ap->rate_set.body[7], ap->channel, ap->rssi, ap->sq,
>       ap->capability);
>       > +essid=%s\n  
>        rate_set=%02X,%02X,%02X,%02X,%02X,%02X,%02X,%02X\n  
>        channel=%d\n \
>       > +rssi=%d\n    sq=%d\n    capability=%04X\n", ap->bssid[0],
>       ap->bssid[1], ap->bssid[2], ap->bssid[3], ap->bssid[4],
>       ap->bssid[5], &(ap->ssid.body[0]), ap->rate_set.body[0],
>       ap->rate_set.body[1], ap->rate_set.body[2],
>       ap->rate_set.body[3], ap->rate_set.body[4],
>       ap->rate_set.body[5], ap->rate_set.body[6],
>       ap->rate_set.body[7], ap->channel, ap->rssi, ap->sq,
>       ap->capability);
>
>       So don't just remove the spaces, fix it correctly with the
>       proper
>       indentation please.
>
>       thanks,
>
>       greg k-h
>
> --
> You received this message because you are subscribed to the Google Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/df1dbfa6-0823-4899-b1b7-
> 4358b18575be%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

  parent reply	other threads:[~2017-02-19 15:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-18 16:40 Arushi Singhal
2017-02-18 16:57 ` Greg KH
     [not found]   ` <df1dbfa6-0823-4899-b1b7-4358b18575be@googlegroups.com>
2017-02-19 15:34     ` Julia Lawall [this message]
2017-02-18 17:00 ` [Outreachy kernel] " Julia Lawall
2017-02-19 18:27   ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1702191633190.2363@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=arushisinghal19971997@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®