From: Jes Sorensen <jes.sorensen@gmail.com>
To: Navya Sri Nizamkari <navyasri.tech@gmail.com>,
outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v3 4/4] staging: rtl8192u: Fix quoted string split across lines.
Date: Mon, 23 Feb 2015 14:49:43 -0500 [thread overview]
Message-ID: <54EB8457.3010108@gmail.com> (raw)
In-Reply-To: <6583fe4c851d1364e66448ecf733b693200f56d0.1424683660.git.navyasri.tech@gmail.com>
On 02/23/15 04:54, Navya Sri Nizamkari wrote:
> This patch fixes the checkpatch.pl warning:
>
> WARNING: quoted string split across lines
>
> Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
> ---
> Changes in v3:
> -None in this patch.
>
> drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> index 0aed175..c81193b 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c
> @@ -66,8 +66,8 @@ void ieee80211_crypt_deinit_handler(unsigned long data)
> spin_lock_irqsave(&ieee->lock, flags);
> ieee80211_crypt_deinit_entries(ieee, 0);
> if (!list_empty(&ieee->crypt_deinit_list)) {
> - netdev_dbg(ieee->dev, "entries remaining in delayed crypt "
> - "deletion list\n");
> + netdev_dbg(ieee->dev,
> + "entries remaining in delayed crypt deletion list\n");
The principle of your changes is good, but you need to get the
indentation right. If you put an argument to a function on the next
line, it needs to line up with the first argument of the function.
netdev_dbg(foo,
very_long_argument_that_should_not_break_lines);
This is the same in all the cases below as well.
Jes
> ieee->crypt_deinit_timer.expires = jiffies + HZ;
> add_timer(&ieee->crypt_deinit_timer);
> }
> @@ -146,8 +146,8 @@ int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops)
> spin_unlock_irqrestore(&hcrypt->lock, flags);
>
> if (del_alg) {
> - pr_debug("ieee80211_crypt: unregistered algorithm "
> - "'%s'\n", ops->name);
> + pr_debug("ieee80211_crypt: unregistered algorithm '%s'\n",
> + ops->name);
> kfree(del_alg);
> }
>
> @@ -232,8 +232,8 @@ void __exit ieee80211_crypto_deinit(void)
> struct ieee80211_crypto_alg *alg =
> (struct ieee80211_crypto_alg *) ptr;
> list_del(ptr);
> - pr_debug("ieee80211_crypt: unregistered algorithm "
> - "'%s' (deinit)\n", alg->ops->name);
> + pr_debug("ieee80211_crypt: unregistered algorithm '%s' (deinit)\n",
> + alg->ops->name);
> kfree(alg);
> }
>
>
prev parent reply other threads:[~2015-02-23 19:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 9:43 [PATCH v3 0/4] staging: rtl8192u: Fix warnings in ieee80211_crypt.c Navya Sri Nizamkari
2015-02-23 9:49 ` [PATCH v3 1/4] staging: rtl8192u: Convert from printk into netdev_dbg or pr_debug Navya Sri Nizamkari
2015-02-23 9:51 ` [PATCH v3 2/4] staging: rtl8192u: Clean-up comment line style Navya Sri Nizamkari
2015-02-23 19:46 ` [Outreachy kernel] " Jes Sorensen
2015-02-26 7:26 ` Navya Sri Nizamkari
2015-02-23 9:53 ` [PATCH v3 3/4] staging: rtl8192u: Replace asm header files with linux ones Navya Sri Nizamkari
2015-02-23 19:47 ` [Outreachy kernel] " Jes Sorensen
2015-02-23 9:54 ` [PATCH v3 4/4] staging: rtl8192u: Fix quoted string split across lines Navya Sri Nizamkari
2015-02-23 19:49 ` Jes Sorensen [this message]
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=54EB8457.3010108@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=navyasri.tech@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.