staging: xgifb: print small buffers via %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Aug 2012 16:05:52 +0000 (19:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:23:18 +0000 (19:23 -0700)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c

index 64ffd70eb7dcf2da0eb179bfac4f12b138a3e9b3..0c859aecc225a025cdd4c979906a9b1225375b66 100644 (file)
@@ -913,17 +913,10 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info)
                        }
 
                        if ((filter >= 0) && (filter <= 7)) {
-                               pr_debug("FilterTable[%d]-%d: %02x %02x %02x %02x\n",
+                               pr_debug("FilterTable[%d]-%d: %*ph\n",
                                         filter_tb, filter,
-                                        XGI_TV_filter[filter_tb].
-                                               filter[filter][0],
-                                        XGI_TV_filter[filter_tb].
-                                               filter[filter][1],
-                                        XGI_TV_filter[filter_tb].
-                                               filter[filter][2],
-                                        XGI_TV_filter[filter_tb].
-                                               filter[filter][3]
-                               );
+                                        4, XGI_TV_filter[filter_tb].
+                                                  filter[filter]);
                                xgifb_reg_set(
                                        XGIPART2,
                                        0x35,