diff options
author | bapt <bapt@FreeBSD.org> | 2015-12-11 20:45:39 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-12-11 20:45:39 +0000 |
commit | e149088043e6c1193382e2af3cf0609faf851310 (patch) | |
tree | 251519af3d649ea5dc2952367b4c474152f04457 /usr.sbin/sesutil/eltsub.h | |
parent | 8d8726ea868dc8e8e2dbaf693c2933d8aecd6e40 (diff) | |
download | FreeBSD-src-e149088043e6c1193382e2af3cf0609faf851310.zip FreeBSD-src-e149088043e6c1193382e2af3cf0609faf851310.tar.gz |
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
Diffstat (limited to 'usr.sbin/sesutil/eltsub.h')
-rw-r--r-- | usr.sbin/sesutil/eltsub.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sesutil/eltsub.h b/usr.sbin/sesutil/eltsub.h index 3d98572..299ada3 100644 --- a/usr.sbin/sesutil/eltsub.h +++ b/usr.sbin/sesutil/eltsub.h @@ -32,5 +32,6 @@ * mjacob@feral.com */ -char * geteltnm(int); -char * stat2ascii(int, u_char *); +char *geteltnm(int); +char *scode2ascii(u_char); +struct sbuf *stat2sbuf(int, u_char *); |