svn commit: r359358 - in stable/12/sys/dev: mpr mps

Alexander Motin mav at FreeBSD.org
Fri Mar 27 13:29:31 UTC 2020


Author: mav
Date: Fri Mar 27 13:29:24 2020
New Revision: 359358
URL: https://svnweb.freebsd.org/changeset/base/359358

Log:
  MFC r358959: Increase buffer in mprsas_log_command() from 192 to 224 bytes.
  
  192 bytes are not enough to print long commands, such as ATA COMMAND PASS
  THROUGH(16), that makes debug output difficult to read.

Modified:
  stable/12/sys/dev/mpr/mpr_sas.c
  stable/12/sys/dev/mps/mps_sas.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mpr/mpr_sas.c
==============================================================================
--- stable/12/sys/dev/mpr/mpr_sas.c	Fri Mar 27 11:08:11 2020	(r359357)
+++ stable/12/sys/dev/mpr/mpr_sas.c	Fri Mar 27 13:29:24 2020	(r359358)
@@ -327,7 +327,7 @@ mprsas_log_command(struct mpr_command *cm, u_int level
 {
 	struct sbuf sb;
 	va_list ap;
-	char str[192];
+	char str[224];
 	char path_str[64];
 
 	if (cm == NULL)

Modified: stable/12/sys/dev/mps/mps_sas.c
==============================================================================
--- stable/12/sys/dev/mps/mps_sas.c	Fri Mar 27 11:08:11 2020	(r359357)
+++ stable/12/sys/dev/mps/mps_sas.c	Fri Mar 27 13:29:24 2020	(r359358)
@@ -321,7 +321,7 @@ mpssas_log_command(struct mps_command *cm, u_int level
 {
 	struct sbuf sb;
 	va_list ap;
-	char str[192];
+	char str[224];
 	char path_str[64];
 
 	if (cm == NULL)


More information about the svn-src-all mailing list