Skip to content

Commit b635066

Browse files
committed
drm/i915: remove a few __i915_printk() uses
__i915_printk() does nothing special for notice/info levels. Just use the regular drm_notice() and drm_info() calls. Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/82857a0c04d3c11ca6758f05c13a3cec4f1a2f01.1722951405.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent 6600c55 commit b635066

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/i915/i915_utils.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level,
5454

5555
void add_taint_for_CI(struct drm_i915_private *i915, unsigned int taint)
5656
{
57-
__i915_printk(i915, KERN_NOTICE, "CI tainted:%#x by %pS\n",
58-
taint, (void *)_RET_IP_);
57+
drm_notice(&i915->drm, "CI tainted: %#x by %pS\n",
58+
taint, __builtin_return_address(0));
5959

6060
/* Failures that occur during fault injection testing are expected */
6161
if (!i915_error_injected())
@@ -74,9 +74,9 @@ int __i915_inject_probe_error(struct drm_i915_private *i915, int err,
7474
if (++i915_probe_fail_count < i915_modparams.inject_probe_failure)
7575
return 0;
7676

77-
__i915_printk(i915, KERN_INFO,
78-
"Injecting failure %d at checkpoint %u [%s:%d]\n",
79-
err, i915_modparams.inject_probe_failure, func, line);
77+
drm_info(&i915->drm, "Injecting failure %d at checkpoint %u [%s:%d]\n",
78+
err, i915_modparams.inject_probe_failure, func, line);
79+
8080
i915_modparams.inject_probe_failure = 0;
8181
return err;
8282
}

0 commit comments

Comments
 (0)