From: Borislav Petkov <petkovbb@googlemail.com>
To: Frans Pop <elendil@planet.nl>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
David Miller <davem@davemloft.net>,
sparclinux@vger.kernel.org, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ide-cd: Improve "weird block size" error message
Date: Tue, 23 Jun 2009 09:57:33 +0200 [thread overview]
Message-ID: <20090623075733.GA14790@liondog.tnic> (raw)
In-Reply-To: <200906230951.24615.elendil@planet.nl>
On Tue, Jun 23, 2009 at 09:51:23AM +0200, Frans Pop wrote:
[..]
> ---
> From: Frans Pop <elendil@planet.nl>
> Subject: ide-cd: Improve "weird block size" error message
>
> Currently the error gets repeated too frequently, for example
> each time HAL polls the device when a disc is present. Avoid that
> by using printk_once instead of printk.
> Also join the error and corrective action messages into a single line.
>
> Signed-off-by: Frans Pop <elendil@planet.nl>
> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>
> diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
> index 4a19686..7ec6996 100644
> --- a/drivers/ide/ide-cd.c
> +++ b/drivers/ide/ide-cd.c
> @@ -886,10 +886,9 @@ static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity,
> case 4096:
> break;
> default:
> - printk(KERN_ERR PFX "%s: weird block size %u\n",
> + printk_once(KERN_ERR PFX "%s: weird block size %u; "
> + "setting default block size to 2048\n",
> drive->name, blocklen);
> - printk(KERN_ERR PFX "%s: default to 2kb block size\n",
> - drive->name);
Please leave the weird block size in the printk since it sometimes might
give insights on what is going on.
Thanks.
--
Regards/Gruss,
Boris.
next prev parent reply other threads:[~2009-06-23 7:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200906211446.38598.elendil@planet.nl>
[not found] ` <20090621.224510.96380426.davem@davemloft.net>
[not found] ` <200906220843.14337.elendil@planet.nl>
2009-06-22 11:21 ` cmd64x: irq 14: nobody cared - system is dreadfully slow Bartlomiej Zolnierkiewicz
2009-06-22 14:04 ` Frans Pop
2009-06-22 14:39 ` Bartlomiej Zolnierkiewicz
2009-06-22 15:16 ` Frans Pop
2009-06-22 17:38 ` Bartlomiej Zolnierkiewicz
2009-06-22 19:01 ` Frans Pop
2009-06-22 21:35 ` Bartlomiej Zolnierkiewicz
2009-06-23 7:51 ` [PATCH] ide-cd: Improve "weird block size" error message Frans Pop
2009-06-23 7:57 ` Borislav Petkov [this message]
2009-06-23 8:02 ` Borislav Petkov
2009-06-23 23:03 ` David Miller
2009-06-23 8:20 ` Frans Pop
2009-06-23 10:59 ` David Miller
2009-06-23 11:13 ` Frans Pop
2009-06-23 11:18 ` David Miller
2009-06-23 21:30 ` Frans Pop
2009-06-23 23:01 ` David Miller
2009-06-29 11:19 ` Jan Engelhardt
2009-06-23 10:15 ` cmd64x: irq 14: nobody cared - system is dreadfully slow David Miller
2009-06-23 14:58 ` Frans Pop
2009-06-23 16:13 ` Bartlomiej Zolnierkiewicz
2009-06-23 23:04 ` David Miller
2009-06-23 10:47 ` David Miller
2009-06-23 10:43 ` David Miller
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=20090623075733.GA14790@liondog.tnic \
--to=petkovbb@googlemail.com \
--cc=bzolnier@gmail.com \
--cc=davem@davemloft.net \
--cc=elendil@planet.nl \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@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
all inboxes | Powered by JetHome®