]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sesutil: Add extra information specific to some SES devices to sesutil map
authorbapt <bapt@FreeBSD.org>
Fri, 11 Dec 2015 20:45:39 +0000 (20:45 +0000)
committerbapt <bapt@FreeBSD.org>
Fri, 11 Dec 2015 20:45:39 +0000 (20:45 +0000)
commite149088043e6c1193382e2af3cf0609faf851310
tree251519af3d649ea5dc2952367b4c474152f04457
parent8d8726ea868dc8e8e2dbaf693c2933d8aecd6e40
sesutil: Add extra information specific to some SES devices to sesutil map

Rework stat2ascii preparing a buffer of what could be printed. This prevent the
risk of overflowing a static buffer.

Do not print those informations anymore in the "status" but into a new
"extra status" only printed if there are actually extra things to print.

Now add those extra informations:

* Thermal sensor temperature
* Cooling devices speed
* Voltage sensors, current consumption

Tested by: AllanJude
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D4520
usr.sbin/sesutil/Makefile
usr.sbin/sesutil/eltsub.c
usr.sbin/sesutil/eltsub.h
usr.sbin/sesutil/sesutil.c