drm/i915/lmem: use new struct drm_device based logging macros.
authorWambui Karuga <wambui.karugax@gmail.com>
Tue, 7 Jan 2020 15:13:31 +0000 (18:13 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 10 Jan 2020 14:11:04 +0000 (16:11 +0200)
Replace instances of printk based logging macros with the new
struct drm_device logging macros in i915/intel_region_lmem.c.

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/7f3df2575ab41a052b7beea86ecc5385edf6f6da.1578409433.git.wambui.karugax@gmail.com
drivers/gpu/drm/i915/intel_region_lmem.c

index e6a6b571dad43174fe287f84e36bd44178210889..14b59b899c9b375e008a360c389605eea949b861 100644 (file)
@@ -125,10 +125,12 @@ intel_setup_fake_lmem(struct drm_i915_private *i915)
                                         io_start,
                                         &intel_region_lmem_ops);
        if (!IS_ERR(mem)) {
-               DRM_INFO("Intel graphics fake LMEM: %pR\n", &mem->region);
-               DRM_INFO("Intel graphics fake LMEM IO start: %llx\n",
-                        (u64)mem->io_start);
-               DRM_INFO("Intel graphics fake LMEM size: %llx\n",
+               drm_info(&i915->drm, "Intel graphics fake LMEM: %pR\n",
+                        &mem->region);
+               drm_info(&i915->drm,
+                        "Intel graphics fake LMEM IO start: %llx\n",
+                       (u64)mem->io_start);
+               drm_info(&i915->drm, "Intel graphics fake LMEM size: %llx\n",
                         (u64)resource_size(&mem->region));
        }