Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6d1826d authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86, mce: use %ll instead of %L for 64-bit numbers



Impact: Cleanup

The standard spelling of a printf pattern for long long is "ll", not
"L", which is for long double.

Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent b79109c3
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -136,11 +136,11 @@ static void print_mce(struct mce *m)
			print_symbol("{%s}", m->ip);
			print_symbol("{%s}", m->ip);
		printk("\n");
		printk("\n");
	}
	}
	printk(KERN_EMERG "TSC %Lx ", m->tsc);
	printk(KERN_EMERG "TSC %llx ", m->tsc);
	if (m->addr)
	if (m->addr)
		printk("ADDR %Lx ", m->addr);
		printk("ADDR %llx ", m->addr);
	if (m->misc)
	if (m->misc)
		printk("MISC %Lx ", m->misc);
		printk("MISC %llx ", m->misc);
	printk("\n");
	printk("\n");
	printk(KERN_EMERG "This is not a software problem!\n");
	printk(KERN_EMERG "This is not a software problem!\n");
	printk(KERN_EMERG "Run through mcelog --ascii to decode "
	printk(KERN_EMERG "Run through mcelog --ascii to decode "
@@ -945,7 +945,7 @@ static ssize_t show_bank(struct sys_device *s, struct sysdev_attribute *attr,
			 char *buf)
			 char *buf)
{
{
	u64 b = bank[attr - bank_attrs];
	u64 b = bank[attr - bank_attrs];
	return sprintf(buf, "%Lx\n", b);
	return sprintf(buf, "%llx\n", b);
}
}


static ssize_t set_bank(struct sys_device *s, struct sysdev_attribute *attr,
static ssize_t set_bank(struct sys_device *s, struct sysdev_attribute *attr,