Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2020 13:29:24 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359358 - in stable/12/sys/dev: mpr mps
Message-ID:  <202003271329.02RDTOsN028314@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003271329.02RDTOsN028314>