drm/i915: Add some newlines to intel_engine_dump() headers
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Feb 2018 10:06:18 +0000 (10:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Feb 2018 10:59:59 +0000 (10:59 +0000)
The headers should be on a separate line for consistency, so add the
missing trailing newline in a few intel_engine_dump() callers.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180205100618.11001-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_hangcheck.c

index 63308ec016a3777259a6b56ed411182c74b098be..6a866810b5299757a1e63ce7d0b1267cc95c8628 100644 (file)
@@ -3644,7 +3644,7 @@ static int wait_for_engines(struct drm_i915_private *i915)
 
                        for_each_engine(engine, i915, id)
                                intel_engine_dump(engine, &p,
-                                                 "%s", engine->name);
+                                                 "%s\n", engine->name);
                }
 
                i915_gem_set_wedged(i915);
index 348a4f7ffb674b435bdb77089f9c229abe171ab5..42e45ae873933fd4ca358ba1bb48535dc57340f5 100644 (file)
@@ -359,7 +359,7 @@ static void hangcheck_accumulate_sample(struct intel_engine_cs *engine,
        case ENGINE_DEAD:
                if (drm_debug & DRM_UT_DRIVER) {
                        struct drm_printer p = drm_debug_printer("hangcheck");
-                       intel_engine_dump(engine, &p, "%s", engine->name);
+                       intel_engine_dump(engine, &p, "%s\n", engine->name);
                }
                break;