Menu

Commit [bd1f8b]  Maximize  Restore  History

mfiutil: Change mfi_autolearn_(period|mode) to write to a FILE

This avoids using fragile logic with snprintf() to build strings.

For the calling code in mfi_show.c, I chose to pass stdout directly
instead of using fmemopen() to write to the temporary buffer since
that is simpler and avoids having to deal with output truncation.

Differential Revision: https://reviews.freebsd.org/D50881

Import from FreeBSD base commit fe1cd73, with changes

John Baldwin John Baldwin 14 hours ago

WHR WHR 14 hours ago

changed mfi_bbu.c
changed mfi_show.c
changed mfiutil.h
mfi_bbu.c Diff Switch to side-by-side view
Loading...
mfi_show.c Diff Switch to side-by-side view
Loading...
mfiutil.h Diff Switch to side-by-side view
Loading...