svn commit: r359359 - in stable/11/sys/dev: mpr mps

Alexander Motin mav at FreeBSD.org
Fri Mar 27 13:30:03 UTC 2020


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

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/11/sys/dev/mpr/mpr_sas.c
  stable/11/sys/dev/mps/mps_sas.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mpr/mpr_sas.c
==============================================================================
--- stable/11/sys/dev/mpr/mpr_sas.c	Fri Mar 27 13:29:24 2020	(r359358)
+++ stable/11/sys/dev/mpr/mpr_sas.c	Fri Mar 27 13:29:53 2020	(r359359)
@@ -317,7 +317,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/11/sys/dev/mps/mps_sas.c
==============================================================================
--- stable/11/sys/dev/mps/mps_sas.c	Fri Mar 27 13:29:24 2020	(r359358)
+++ stable/11/sys/dev/mps/mps_sas.c	Fri Mar 27 13:29:53 2020	(r359359)
@@ -311,7 +311,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-stable mailing list