Skip to content

Commit

Permalink
Staging: udlfb: fix printk format warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent e82bf85 commit f66abce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/udlfb/udlfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f66abce

Please sign in to comment.