OSDN Git Service

OMAPDSS: DSS: fix a warning message
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Dec 2015 13:14:58 +0000 (16:14 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 29 Dec 2015 09:06:31 +0000 (11:06 +0200)
The WARN() macro has to take a condition.  The current code will just
print the stack trace and the function name instead of the intended
warning message.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/dss.h

index fec68d8..9a64532 100644 (file)
@@ -343,7 +343,8 @@ u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt);
 #else
 static inline u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt)
 {
-       WARN("%s: DSI not compiled in, returning pixel_size as 0\n", __func__);
+       WARN(1, "%s: DSI not compiled in, returning pixel_size as 0\n",
+            __func__);
        return 0;
 }
 #endif