drm/i915/renderstate: use struct drm_device based logging macros.
authorWambui Karuga <wambui.karugax@gmail.com>
Sat, 14 Mar 2020 18:33:41 +0000 (21:33 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Mar 2020 09:34:22 +0000 (11:34 +0200)
Replace the use of the printk based drm logging macros with the struct
drm_device based logging macros.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200314183344.17603-5-wambui.karugax@gmail.com
drivers/gpu/drm/i915/gt/intel_renderstate.c

index 5954ecc3207f21efed541308f2b4158ac296016b..26e78db3367513d60f6a8a4acb51c3fc1381dba8 100644 (file)
@@ -102,7 +102,7 @@ static int render_state_setup(struct intel_renderstate *so,
        }
 
        if (rodata->reloc[reloc_index] != -1) {
-               DRM_ERROR("only %d relocs resolved\n", reloc_index);
+               drm_err(&i915->drm, "only %d relocs resolved\n", reloc_index);
                goto err;
        }