Skip to content

Commit a81a8f5

Browse files
rddunlapaegl
authored andcommitted
[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>
1 parent 9b6b939 commit a81a8f5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/char/mbcs.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/moduleparam.h>
1616
#include <linux/types.h>
1717
#include <linux/ioport.h>
18+
#include <linux/kernel.h>
1819
#include <linux/notifier.h>
1920
#include <linux/reboot.h>
2021
#include <linux/init.h>
@@ -715,8 +716,8 @@ static ssize_t show_algo(struct device *dev, struct device_attribute *attr, char
715716
*/
716717
debug0 = *(uint64_t *) soft->debug_addr;
717718

718-
return sprintf(buf, "0x%lx 0x%lx\n",
719-
(debug0 >> 32), (debug0 & 0xffffffff));
719+
return sprintf(buf, "0x%x 0x%x\n",
720+
upper_32_bits(debug0), lower_32_bits(debug0));
720721
}
721722

722723
static ssize_t store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

0 commit comments

Comments
 (0)