From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com
Subject: [PATCH 2/2] drm/i915/display: use str_enable_disable() more
Date: Tue, 24 Nov 2026 16:11:46 +0200 [thread overview]
Message-ID: <20261124141146.1560208-2-jani.nikula@intel.com> (raw)
In-Reply-To: <20261124141146.1560208-1-jani.nikula@intel.com>
Convert a few places to str_enable_disable(). Improve the grammar and
switch to %pe errno logging while at it.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 4 ++--
drivers/gpu/drm/i915/display/intel_hdmi.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
index 566a921d18a1..33cfa32791ae 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
@@ -756,8 +756,8 @@ intel_dp_mst_toggle_hdcp_stream_select(struct intel_connector *connector,
hdcp->stream_transcoder, enable,
TRANS_DDI_HDCP_SELECT);
if (ret)
- drm_err(display->drm, "%s HDCP stream select failed (%d)\n",
- enable ? "Enable" : "Disable", ret);
+ drm_err(display->drm, "HDCP stream select %s failed (%pe)\n",
+ str_enable_disable(enable), ERR_PTR(ret));
return ret;
}
diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c
index 667d4514c375..ff1106b70390 100644
--- a/drivers/gpu/drm/i915/display/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/display/intel_hdmi.c
@@ -1572,8 +1572,8 @@ int intel_hdmi_hdcp_toggle_signalling(struct intel_digital_port *dig_port,
cpu_transcoder, enable,
TRANS_DDI_HDCP_SIGNALLING);
if (ret) {
- drm_err(display->drm, "%s HDCP signalling failed (%d)\n",
- enable ? "Enable" : "Disable", ret);
+ drm_err(display->drm, "HDCP signalling %s failed (%pe)\n",
+ str_enable_disable(enable), ERR_PTR(ret));
return ret;
}
--
2.47.3
next prev parent reply other threads:[~2026-11-24 14:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 14:11 [PATCH 1/2] drm/i915/display: don't be cute about printing enabling/disabling Jani Nikula
2026-11-24 14:11 ` Jani Nikula [this message]
2026-11-25 6:10 ` [PATCH 2/2] drm/i915/display: use str_enable_disable() more Kandpal, Suraj
2026-11-24 14:24 ` [PATCH 1/2] drm/i915/display: don't be cute about printing enabling/disabling sashiko-bot
2026-11-25 11:48 ` Jani Nikula
2026-11-24 14:48 ` ✗ CI.KUnit: failure for series starting with [1/2] " Patchwork
2026-11-25 1:11 ` ✓ i915.CI.BAT: success " Patchwork
2026-11-25 18:42 ` ✓ i915.CI.Full: " Patchwork
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=20261124141146.1560208-2-jani.nikula@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/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.