Re: [PATCH] EDAC/mc_sysfs: Print MC-scope sysfs counters unsigned

From: Eric Badger
Date: Mon Oct 04 2021 - 12:53:24 EST


On Mon, Oct 04, 2021 at 03:21:13PM +0000, Luck, Tony wrote:
> > This is cosmetically nicer for counts > INT32_MAX, and aligns the
> > MC-scope format with that of the lower layer sysfs counter files.
>
> While this is technically the right thing to do, I pity the system administrator that
> is looking at a system with more than 2147483647 corrected or uncorrected errors!
>
> So:
>
> Acked-by: Tony Luck <tony.luck@xxxxxxxxx>
>
> but maybe this is just churn and not really useful in practice?

Pity accepted :). I only noticed the sign mismatch after seeing a
negative value on a server in the wild. But it's cosmetic really; if
you've reached INT32_MAX you'll probably reach UINT32_MAX and can't rely
on the counter.

Cheers,
Eric