Skip to content

Commit

Permalink
m68k: dio - Kill resource_size_t format warnings
Browse files Browse the repository at this point in the history
warning: format '%08lx' expects type 'long unsigned int', but argument 3 has
type 'resource_size_t'

Signed-off-by: Geert Uytterhoeven <[email protected]>
  • Loading branch information
geertu committed Jan 12, 2009
1 parent 89bde7b commit fae3306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/dio/dio-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ static ssize_t dio_show_resource(struct device *dev, struct device_attribute *at
struct dio_dev *d = to_dio_dev(dev);

return sprintf(buf, "0x%08lx 0x%08lx 0x%08lx\n",
dio_resource_start(d), dio_resource_end(d),
(unsigned long)dio_resource_start(d),
(unsigned long)dio_resource_end(d),
dio_resource_flags(d));
}
static DEVICE_ATTR(resource, S_IRUGO, dio_show_resource, NULL);
Expand Down

0 comments on commit fae3306

Please sign in to comment.