mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Improve mfi_pd_inq_string() by * Reusing buffer sizes from cam/cam.h according to SCSI specification + NULL byte * Don't truncate vendor-specific information by escaping into a too small buffer * Use cam_strvis() from libcam instead of old, outdated local copy * Recaculate size of inq_string based on the reused buffer sizes and format statements PR: 294354 Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D56328
20 lines
401 B
Makefile
20 lines
401 B
Makefile
PROG= mfiutil
|
|
LINKS= ${BINDIR}/mfiutil ${BINDIR}/mrsasutil
|
|
|
|
SRCS= mfiutil.c mfi_bbu.c mfi_cmd.c mfi_config.c mfi_drive.c mfi_evt.c \
|
|
mfi_flash.c mfi_patrol.c mfi_show.c mfi_volume.c mfi_foreign.c \
|
|
mfi_properties.c
|
|
MAN= mfiutil.8
|
|
MLINKS= mfiutil.8 mrsasutil.8
|
|
|
|
CFLAGS.gcc+= -fno-builtin-strftime
|
|
|
|
LIBADD= cam sbuf util
|
|
|
|
# Here be dragons
|
|
.ifdef DEBUG
|
|
CFLAGS+= -DDEBUG
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|