From: Ambar Chakravartty <amch9605@gmail.com>
To: linux-staging@lists.linux.dev
Cc: Hans de Goede <hansg@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Andy Shevchenko <andy@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Ambar Chakravartty <amch9605@gmail.com>
Subject: [PATCH] staging: media: atomisp: use %s with __func__ in debug messages
Date: Tue, 23 Jun 2026 11:16:27 +0530 [thread overview]
Message-ID: <20260623054627.62422-1-amch9605@gmail.com> (raw)
This patch fixes the following checkpatch.pl warning:
Prefer using '"%s...", __func__' to using 'ia_css_bayer_io_config',
this function's name, in a string
Signed-off-by: Ambar Chakravartty <amch9605@gmail.com>
---
.../kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c
index 38f371b6d6d5..cc2179c5bb89 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c
@@ -39,7 +39,7 @@ int ia_css_bayer_io_config(const struct ia_css_binary *binary,
struct dma_port_config config;
#ifndef IA_CSS_NO_DEBUG
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
- "ia_css_bayer_io_config() get part enter:\n");
+ "%s get part enter:\n", __func__);
#endif
ret = ia_css_dma_configure_from_info(&config, in_frame_info);
@@ -52,7 +52,7 @@ int ia_css_bayer_io_config(const struct ia_css_binary *binary,
to->ddr_elems_per_word = ddr_elems_per_word;
#ifndef IA_CSS_NO_DEBUG
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
- "ia_css_bayer_io_config() get part leave:\n");
+ "%s get part leave:\n", __func__);
#endif
}
@@ -67,7 +67,7 @@ int ia_css_bayer_io_config(const struct ia_css_binary *binary,
struct dma_port_config config;
#ifndef IA_CSS_NO_DEBUG
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
- "ia_css_bayer_io_config() put part enter:\n");
+ "%s put part enter:\n", __func__);
#endif
ret = ia_css_dma_configure_from_info(&config, &out_frames[0]->frame_info);
@@ -81,7 +81,7 @@ int ia_css_bayer_io_config(const struct ia_css_binary *binary,
#ifndef IA_CSS_NO_DEBUG
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
- "ia_css_bayer_io_config() put part leave:\n");
+ "%s put part leave:\n", __func__);
#endif
}
return 0;
--
2.54.0
next reply other threads:[~2026-06-23 5:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-23 5:46 Ambar Chakravartty [this message]
2026-06-23 8:18 ` [PATCH] staging: media: atomisp: use %s with __func__ in debug messages Andy Shevchenko
2026-06-23 14:48 ` Ambar Chakravartty
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=20260623054627.62422-1-amch9605@gmail.com \
--to=amch9605@gmail.com \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@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