From: Takashi Iwai <tiwai@suse.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org, clemens@ladisch.de
Subject: Re: [PATCH 3/4] ALSA: firewire-lib: use dev_err() when detecting incoming streaming error
Date: Fri, 22 May 2015 17:08:32 +0200 [thread overview]
Message-ID: <s5hy4kg3b0v.wl-tiwai@suse.de> (raw)
In-Reply-To: <1432304474-6533-4-git-send-email-o-takashi@sakamocchi.jp>
At Fri, 22 May 2015 23:21:13 +0900,
Takashi Sakamoto wrote:
>
> When detecting invalid value in 'dbs' field of CIP header or packet
> discontinuity, current implementation reports the status by err_info().
dev_info()
> In most cases this state is caused by model-specific issue due to
> vendor's customization and should be reported to developers.
>
> This commit use dev_err() instead of dev_info() for this purpose.
> In the cases, packet streaming is aborted, thus no message floading
> occurs.
>
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> ---
> sound/firewire/amdtp.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c
> index 29efbda..93cf93a 100644
> --- a/sound/firewire/amdtp.c
> +++ b/sound/firewire/amdtp.c
> @@ -723,7 +723,7 @@ static int handle_in_packet(struct amdtp_stream *s,
> (cip_header[0] & CIP_DBS_MASK) >> CIP_DBS_SHIFT;
> /* avoid division by zero */
> if (data_block_quadlets == 0) {
> - dev_info_ratelimited(&s->unit->device,
> + dev_err(&s->unit->device,
Here you dropped _ratelimited(). Are you sure that it won't give any
problem?
Takashi
> "Detect invalid value in dbs field: %08X\n",
> cip_header[0]);
> return -EIO;
> @@ -756,9 +756,9 @@ static int handle_in_packet(struct amdtp_stream *s,
> }
>
> if (lost) {
> - dev_info(&s->unit->device,
> - "Detect discontinuity of CIP: %02X %02X\n",
> - s->data_block_counter, data_block_counter);
> + dev_err(&s->unit->device,
> + "Detect discontinuity of CIP: %02X %02X\n",
> + s->data_block_counter, data_block_counter);
> return -EIO;
> }
>
> --
> 2.1.4
>
next prev parent reply other threads:[~2015-05-22 15:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 14:21 [PATCH 0/4] ALSA: firewire-lib: code cleanup Takashi Sakamoto
2015-05-22 14:21 ` [PATCH 1/4] ALSA: firewire-lib: rename local functions for " Takashi Sakamoto
2015-05-22 14:21 ` [PATCH 2/4] ALSA: firewire-lib: macro arrangement " Takashi Sakamoto
2015-05-22 14:21 ` [PATCH 3/4] ALSA: firewire-lib: use dev_err() when detecting incoming streaming error Takashi Sakamoto
2015-05-22 15:08 ` Takashi Iwai [this message]
2015-05-22 18:05 ` Clemens Ladisch
2015-05-23 4:16 ` Takashi Sakamoto
2015-05-23 7:00 ` Takashi Sakamoto
2015-05-22 14:21 ` [PATCH 4/4] ALSA: firewire-lib: use protocol error when detecting wrong value in CIP header Takashi Sakamoto
2015-05-23 19:16 ` [PATCH 0/4] ALSA: firewire-lib: code cleanup Clemens Ladisch
2015-05-24 6:35 ` Takashi Iwai
2015-05-24 11:41 ` Takashi Sakamoto
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=s5hy4kg3b0v.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=o-takashi@sakamocchi.jp \
/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