From: "Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
To: Thorsten Blum <thorsten.blum@linux.dev>,
Liam Girdwood <lgirdwood@gmail.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
Daniel Baluta <daniel.baluta@nxp.com>,
Kai Vehmanen <kai.vehmanen@linux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Greg KH <gregkh@linuxfoundation.org>,
Peter Zijlstra <peterz@infradead.org>
Cc: sound-open-firmware@alsa-project.org,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH] ASoC: SOF: Intel: Use str_yes_no() helper in atom_dump()
Date: Mon, 30 Dec 2024 11:38:11 +0200 [thread overview]
Message-ID: <16db44f0-38a7-48c6-a7f5-5d200acd9868@linux.intel.com> (raw)
In-Reply-To: <20241230085717.785718-2-thorsten.blum@linux.dev>
On 30/12/2024 10:57, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_yes_no() helper function.
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> sound/soc/sof/intel/atom.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/sound/soc/sof/intel/atom.c b/sound/soc/sof/intel/atom.c
> index 30e981c558c6..0d364bcdcfa9 100644
> --- a/sound/soc/sof/intel/atom.c
> +++ b/sound/soc/sof/intel/atom.c
> @@ -78,20 +78,20 @@ void atom_dump(struct snd_sof_dev *sdev, u32 flags)
> imrd = snd_sof_dsp_read64(sdev, DSP_BAR, SHIM_IMRD);
> dev_err(sdev->dev,
> "error: ipc host -> DSP: pending %s complete %s raw 0x%llx\n",
> - (panic & SHIM_IPCX_BUSY) ? "yes" : "no",
> - (panic & SHIM_IPCX_DONE) ? "yes" : "no", panic);
> + str_yes_no(panic & SHIM_IPCX_BUSY),
> + str_yes_no(panic & SHIM_IPCX_DONE), panic);
> dev_err(sdev->dev,
> "error: mask host: pending %s complete %s raw 0x%llx\n",
> - (imrx & SHIM_IMRX_BUSY) ? "yes" : "no",
> - (imrx & SHIM_IMRX_DONE) ? "yes" : "no", imrx);
> + str_yes_no(imrx & SHIM_IMRX_BUSY),
> + str_yes_no(imrx & SHIM_IMRX_DONE), imrx);
> dev_err(sdev->dev,
> "error: ipc DSP -> host: pending %s complete %s raw 0x%llx\n",
> - (status & SHIM_IPCD_BUSY) ? "yes" : "no",
> - (status & SHIM_IPCD_DONE) ? "yes" : "no", status);
> + str_yes_no(status & SHIM_IPCD_BUSY),
> + str_yes_no(status & SHIM_IPCD_DONE), status);
> dev_err(sdev->dev,
> "error: mask DSP: pending %s complete %s raw 0x%llx\n",
> - (imrd & SHIM_IMRD_BUSY) ? "yes" : "no",
> - (imrd & SHIM_IMRD_DONE) ? "yes" : "no", imrd);
> + str_yes_no(imrd & SHIM_IMRD_BUSY),
> + str_yes_no(imrd & SHIM_IMRD_DONE), imrd);
>
> }
> EXPORT_SYMBOL_NS(atom_dump, "SND_SOC_SOF_INTEL_ATOM_HIFI_EP");
--
Péter
next prev parent reply other threads:[~2024-12-30 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 8:57 [RESEND PATCH] ASoC: SOF: Intel: Use str_yes_no() helper in atom_dump() Thorsten Blum
2024-12-30 9:38 ` Péter Ujfalusi [this message]
2025-01-06 18:48 ` Mark Brown
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=16db44f0-38a7-48c6-a7f5-5d200acd9868@linux.intel.com \
--to=peter.ujfalusi@linux.intel.com \
--cc=broonie@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=gregkh@linuxfoundation.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=peterz@infradead.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=ranjani.sridharan@linux.intel.com \
--cc=sound-open-firmware@alsa-project.org \
--cc=thorsten.blum@linux.dev \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.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