Staging: udlfb: fix printk format warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 6 Aug 2009 23:09:35 +0000 (16:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:06 +0000 (12:02 -0700)
Fix printk format warning: use %td for ptrdiff:

drivers/staging/udlfb/udlfb.h:209: warning: format '%d' expects type 'int', but argument 3 has type 'long int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/udlfb/udlfb.h

index 08bd671204b254d1837a0da46be1109e6dc08a2c..40ad85ea8e674e1ac9924dd96ae0a8889127c1ef 100644 (file)
@@ -205,7 +205,7 @@ static int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height
 
                        /* send */
                        ret = dlfb_bulk_msg(dev_info, bufptr - dev_info->buf);
-                       printk("ret bulk 2: %d %d\n", ret,
+                       printk("ret bulk 2: %d %td\n", ret,
                               bufptr - dev_info->buf);
 
                        /* flush */