From: Jani Nikula <jani.nikula@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
dri-devel@lists.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: Re: [PATCH] drm/print: Add missing [drm] prefix to drm based WARN
Date: Fri, 24 May 2024 11:04:40 +0300 [thread overview]
Message-ID: <87wmnjoctj.fsf@intel.com> (raw)
In-Reply-To: <20240523174429.800-1-michal.wajdeczko@intel.com>
On Thu, 23 May 2024, Michal Wajdeczko <michal.wajdeczko@intel.com> wrote:
> All drm_device based logging macros, except those related to WARN,
> include the [drm] prefix. Fix that.
>
> [ ] 0000:00:00.0: this is a warning
> [ ] 0000:00:00.0: drm_WARN_ON(true)
> vs
> [ ] 0000:00:00.0: [drm] this is a warning
> [ ] 0000:00:00.0: [drm] drm_WARN_ON(true)
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Jani Nikula <jani.nikula@intel.com>
> ---
> include/drm/drm_print.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
> index 089950ad8681..112f8830b372 100644
> --- a/include/drm/drm_print.h
> +++ b/include/drm/drm_print.h
> @@ -632,12 +632,12 @@ void __drm_err(const char *format, ...);
>
> /* Helper for struct drm_device based WARNs */
> #define drm_WARN(drm, condition, format, arg...) \
> - WARN(condition, "%s %s: " format, \
> + WARN(condition, "%s %s: [drm] " format, \
> dev_driver_string((drm)->dev), \
> dev_name((drm)->dev), ## arg)
>
> #define drm_WARN_ONCE(drm, condition, format, arg...) \
> - WARN_ONCE(condition, "%s %s: " format, \
> + WARN_ONCE(condition, "%s %s: [drm] " format, \
> dev_driver_string((drm)->dev), \
> dev_name((drm)->dev), ## arg)
--
Jani Nikula, Intel
prev parent reply other threads:[~2024-05-24 8:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 17:44 [PATCH] drm/print: Add missing [drm] prefix to drm based WARN Michal Wajdeczko
2024-05-24 8:04 ` Jani Nikula [this message]
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=87wmnjoctj.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=mripard@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.