mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
EDAC/mc_sysfs: Print MC-scope sysfs counters unsigned
This is cosmetically nicer for counts > INT32_MAX, and aligns the MC-scope format with that of the lower layer sysfs counter files. Signed-off-by: Eric Badger <ebadger@purestorage.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/20211003181653.GA685515@ebadger-ThinkPad-T590
This commit is contained in:
parent
470b52564c
commit
34417f27b9
@ -744,7 +744,7 @@ static ssize_t mci_ue_count_show(struct device *dev,
|
||||
{
|
||||
struct mem_ctl_info *mci = to_mci(dev);
|
||||
|
||||
return sprintf(data, "%d\n", mci->ue_mc);
|
||||
return sprintf(data, "%u\n", mci->ue_mc);
|
||||
}
|
||||
|
||||
static ssize_t mci_ce_count_show(struct device *dev,
|
||||
@ -753,7 +753,7 @@ static ssize_t mci_ce_count_show(struct device *dev,
|
||||
{
|
||||
struct mem_ctl_info *mci = to_mci(dev);
|
||||
|
||||
return sprintf(data, "%d\n", mci->ce_mc);
|
||||
return sprintf(data, "%u\n", mci->ce_mc);
|
||||
}
|
||||
|
||||
static ssize_t mci_ce_noinfo_show(struct device *dev,
|
||||
@ -762,7 +762,7 @@ static ssize_t mci_ce_noinfo_show(struct device *dev,
|
||||
{
|
||||
struct mem_ctl_info *mci = to_mci(dev);
|
||||
|
||||
return sprintf(data, "%d\n", mci->ce_noinfo_count);
|
||||
return sprintf(data, "%u\n", mci->ce_noinfo_count);
|
||||
}
|
||||
|
||||
static ssize_t mci_ue_noinfo_show(struct device *dev,
|
||||
@ -771,7 +771,7 @@ static ssize_t mci_ue_noinfo_show(struct device *dev,
|
||||
{
|
||||
struct mem_ctl_info *mci = to_mci(dev);
|
||||
|
||||
return sprintf(data, "%d\n", mci->ue_noinfo_count);
|
||||
return sprintf(data, "%u\n", mci->ue_noinfo_count);
|
||||
}
|
||||
|
||||
static ssize_t mci_seconds_show(struct device *dev,
|
||||
|
Loading…
Reference in New Issue
Block a user