diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-09-04 19:58:05 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-09-15 11:42:00 -0400 |
commit | a81a8f580b6b525112aba19319dcc5dd3db4dfee (patch) | |
tree | 93ba3f3d95e4eac2c77a1273a862d19ab215d7ed /drivers/char | |
parent | 9b6b93998a0d9c44d6701be5b472f3302c3a8596 (diff) |
[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: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Bruce Losure <blosure@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/mbcs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c index acd8e9ed474a..87c67b42bc08 100644 --- a/drivers/char/mbcs.c +++ b/drivers/char/mbcs.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/moduleparam.h> | 15 | #include <linux/moduleparam.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/ioport.h> | 17 | #include <linux/ioport.h> |
18 | #include <linux/kernel.h> | ||
18 | #include <linux/notifier.h> | 19 | #include <linux/notifier.h> |
19 | #include <linux/reboot.h> | 20 | #include <linux/reboot.h> |
20 | #include <linux/init.h> | 21 | #include <linux/init.h> |
@@ -715,8 +716,8 @@ static ssize_t show_algo(struct device *dev, struct device_attribute *attr, char | |||
715 | */ | 716 | */ |
716 | debug0 = *(uint64_t *) soft->debug_addr; | 717 | debug0 = *(uint64_t *) soft->debug_addr; |
717 | 718 | ||
718 | return sprintf(buf, "0x%lx 0x%lx\n", | 719 | return sprintf(buf, "0x%x 0x%x\n", |
719 | (debug0 >> 32), (debug0 & 0xffffffff)); | 720 | upper_32_bits(debug0), lower_32_bits(debug0)); |
720 | } | 721 | } |
721 | 722 | ||
722 | static ssize_t store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 723 | static ssize_t store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |