Commit a81a8f58 authored by Randy Dunlap's avatar Randy Dunlap Committed by Tony Luck

[IA64] mbcs: fix printk format warnings

drivers/char/mbcs.c:719: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint64_t'
drivers/char/mbcs.c:719: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'uint64_t'
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: Bruce Losure <blosure@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 9b6b9399
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -715,8 +716,8 @@ static ssize_t show_algo(struct device *dev, struct device_attribute *attr, char ...@@ -715,8 +716,8 @@ static ssize_t show_algo(struct device *dev, struct device_attribute *attr, char
*/ */
debug0 = *(uint64_t *) soft->debug_addr; debug0 = *(uint64_t *) soft->debug_addr;
return sprintf(buf, "0x%lx 0x%lx\n", return sprintf(buf, "0x%x 0x%x\n",
(debug0 >> 32), (debug0 & 0xffffffff)); upper_32_bits(debug0), lower_32_bits(debug0));
} }
static ssize_t store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) static ssize_t store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment