Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Sergey Matyukevich <geomatsi@gmail.com>
To: Jeff Garzik <jgarzik@pobox.com>, Joe Perches <joe@perches.com>
Cc: Mark Lord <kernel@teksavvy.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH 02/10] drivers/ata: Fix continuation line formats
Date: Sun, 7 Feb 2010 18:10:20 +0300	[thread overview]
Message-ID: <20100207181020.21d8c9b4@realm> (raw)
In-Reply-To: <4B69B182.9040400@pobox.com>

Hello,
Thanks for attention and fix. For me Joe's fix is fine. 
But if you would prefer one-line version:

diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c
index 41c94b1..7ce9595 100644
--- a/drivers/ata/pata_at91.c
+++ b/drivers/ata/pata_at91.c
@@ -153,8 +153,7 @@ static void pata_at91_set_piomode(struct ata_port *ap, struct ata_device *adev)
 	/* Compute ATA timing and set it to SMC */
 	ret = ata_timing_compute(adev, adev->pio_mode, &timing, 1000, 0);
 	if (ret) {
-		dev_warn(ap->dev, "Failed to compute ATA timing %d, \
-				set PIO_0 timing\n", ret);
+		dev_warn(ap->dev, "Failed to compute ATA timing %d, set PIO_0 timing\n", ret);
 		set_smc_timing(ap->dev, info, &initial_timing);
 	} else {
 		set_smc_timing(ap->dev, info, &timing);


> > Joe Perches wrote:
> >> String constants that are continued on subsequent lines with \
> >> are not good.
> >>
> >> Signed-off-by: Joe Perches <joe@perches.com>
> >> ---
> >> drivers/ata/pata_at91.c | 4 ++--
> >> 1 files changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c
> >> index 41c94b1..d222c0d 100644
> >> --- a/drivers/ata/pata_at91.c
> >> +++ b/drivers/ata/pata_at91.c
> >> @@ -153,8 +153,8 @@ static void pata_at91_set_piomode(struct
> >> ata_port *ap, struct ata_device *adev)
> >> /* Compute ATA timing and set it to SMC */
> >> ret = ata_timing_compute(adev, adev->pio_mode, &timing, 1000, 0);
> >> if (ret) {
> >> - dev_warn(ap->dev, "Failed to compute ATA timing %d, \
> >> - set PIO_0 timing\n", ret);
> >> + dev_warn(ap->dev, "Failed to compute ATA timing %d, set PIO_0
> >> timing\n",
> >> + ret);
> > ..
> >
> > NAK. Just stick the ret); part onto the same line and be done with
> > it.
> 
> Agreed...
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ide"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




  reply	other threads:[~2010-02-07 15:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02  7:22 [PATCH 00/10] Non-printk continuation line fixes Joe Perches
2010-02-02  7:22 ` [PATCH 02/10] drivers/ata: Fix continuation line formats Joe Perches
2010-02-03 17:21   ` Mark Lord
2010-02-03 17:25     ` Jeff Garzik
2010-02-07 15:10       ` Sergey Matyukevich [this message]
2010-02-03 19:15     ` Joe Perches
2010-02-04  1:39       ` Krzysztof Halasa
2010-02-04  3:36         ` Joe Perches
2010-02-04  4:59       ` Mark Lord
2010-02-04  5:13         ` Andrew Morton
2010-02-04 14:03           ` Mark Lord
2010-02-04  5:16         ` Joe Perches
2010-02-04 14:07           ` Mark Lord

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=20100207181020.21d8c9b4@realm \
    --to=geomatsi@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=joe@perches.com \
    --cc=kernel@teksavvy.com \
    --cc=linux-ide@vger.kernel.org \
    /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