From: Aniket Sahu <aniketsahu999@gmail.com>
To: jani.nikula@linux.intel.com,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: Aniket Sahu <aniketsahu999@gmail.com>
Subject: [PATCH v2] drm: fix spacing in printk format strings
Date: Wed, 4 Feb 2026 18:57:20 +0530 [thread overview]
Message-ID: <20260204132722.6692-1-aniketsahu999@gmail.com> (raw)
In-Reply-To: <20260203152127.88126-1-aniketsahu999@gmail.com>
Remove unnecessary string literal concatenation in printk format
strings by folding the space into the format directly. This is
in response to warnings from scripts/checkpatch.pl for
drm_print.c
No functional change intended.
Signed-off-by: Aniket Sahu <aniketsahu999@gmail.com>
---
drivers/gpu/drm/drm_print.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c
index ded9461df..71aab4d22 100644
--- a/drivers/gpu/drm/drm_print.c
+++ b/drivers/gpu/drm/drm_print.c
@@ -198,10 +198,10 @@ static void __drm_dev_vprintk(const struct device *dev, const char *level,
prefix_pad, prefix, vaf);
} else {
if (origin)
- printk("%s" "[" DRM_NAME ":%ps]%s%s %pV",
+ printk("%s [" DRM_NAME ":%ps]%s%s %pV",
level, origin, prefix_pad, prefix, vaf);
else
- printk("%s" "[" DRM_NAME "]%s%s %pV",
+ printk("%s [" DRM_NAME "]%s%s %pV",
level, prefix_pad, prefix, vaf);
}
}
--
2.53.0
parent reply other threads:[~2026-02-04 13:27 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20260203152127.88126-1-aniketsahu999@gmail.com>]
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=20260204132722.6692-1-aniketsahu999@gmail.com \
--to=aniketsahu999@gmail.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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®