| commit | bd1f8bdf9d3e182e73a8ce1cb3a1b6d0ebef7442 | [log] [download] |
|---|---|---|
| author | John Baldwin <jhb@FreeBSD.org> | Fri Dec 19 13:22:52 2025 +0800 |
| committer | WHR <msl0000023508@gmail.com> | Fri Dec 19 13:22:52 2025 +0800 |
| tree | d847750b86dd4c5303a75045dc67c77234292942 | |
| parent | 94560872fa5a56a0ffb89279a48f553e8a3c5eb7 [diff] |
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