From: Randy Dunlap Date: Thu, 6 Aug 2009 23:09:35 +0000 (-0700) Subject: Staging: udlfb: fix printk format warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f66abce70504514b1173e4fc9973126b99f65d89;p=openwrt%2Fstaging%2Fblogic.git Staging: udlfb: fix printk format warning 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 Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/udlfb/udlfb.h b/drivers/staging/udlfb/udlfb.h index 08bd671204b2..40ad85ea8e67 100644 --- a/drivers/staging/udlfb/udlfb.h +++ b/drivers/staging/udlfb/udlfb.h @@ -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 */