[PATCH 20/21] Introduce struct eeh_stats for EEH

David Laight David.Laight at ACULAB.COM
Tue Feb 28 21:04:00 EST 2012


 
> +struct eeh_stats {
> +	unsigned int no_device;		/* PCI device not found */
...
> +				"no device           =%d\n"
...

Use %u (for all the stats), you really don't want negative
values printed.
I've NFI how long wrapping these counters might take!
If it is feasable (maybe much above 100Hz) then you
need 64bit counters.

	David





More information about the Linuxppc-dev mailing list