drm/sun4i: backend: Clarify sun4i_backend_layer_enable debug message
authorChen-Yu Tsai <wens@csie.org>
Tue, 25 Apr 2017 15:25:05 +0000 (23:25 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:31:58 +0000 (08:31 +0200)
sun4i_backend_layer_enable can be called to enable or disable a layer.
However the debug message always says "Enable", which is confusing.

This patch makes the debug message vary according to the enable state.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_backend.c

index e9eca057ff353fecb5ae932e3d58f11d833b194c..e53107418adda98f5368282e8e8789951638077e 100644 (file)
@@ -73,7 +73,8 @@ void sun4i_backend_layer_enable(struct sun4i_backend *backend,
 {
        u32 val;
 
-       DRM_DEBUG_DRIVER("Enabling layer %d\n", layer);
+       DRM_DEBUG_DRIVER("%sabling layer %d\n", enable ? "En" : "Dis",
+                        layer);
 
        if (enable)
                val = SUN4I_BACKEND_MODCTL_LAY_EN(layer);