From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web12.27689.1591614960628044791 for ; Mon, 08 Jun 2020 04:16:00 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: ming.tan@intel.com) IronPort-SDR: GrwgfKYdnMHRbzkrIvTZWWW2ajvn4zucwUqR/W4GzJALwNeAwyOXfp6VlXVJDOO5ObLgQTBT3Y zQ+iw1PeNU7g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2020 04:15:59 -0700 IronPort-SDR: HdjAqdUChLZOTtFcqNDdnA13hTX1cqX1XThFSS1KYDHf5kyZKQsijqOyCJL/CNA9l1IEAnfBDu MWTMzohtQA+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,487,1583222400"; d="scan'208";a="349135988" Received: from shwdejointlab96.ccr.corp.intel.com ([10.239.134.144]) by orsmga001.jf.intel.com with ESMTP; 08 Jun 2020 04:15:58 -0700 From: "Tan, Ming" To: devel@edk2.groups.io Subject: [PATCH 1/2] MdeModulePkg/StatusCodeHandler: do not output \n\r for string data Date: Mon, 8 Jun 2020 19:15:46 +0800 Message-Id: <20200608111547.17649-1-ming.tan@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2787 When output string data through serial port, will not ouput \n\r now. Caller can output several data in one line, and output \n\r when needed. Signed-off-by: Ming Tan --- .../Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c | 2 +- .../StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c | 2 +- .../Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeW= orker.c b/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWork= er.c index 2455f8b2a9..3aa5642b64 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c @@ -134,7 +134,7 @@ SerialStatusCodeReportWorker ( CharCount =3D AsciiSPrint (=0D Buffer,=0D sizeof (Buffer),=0D - "%a\n\r",=0D + "%a",=0D ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii=0D );=0D } else {=0D diff --git a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStat= usCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/Serial= StatusCodeWorker.c index 2dc3ecfff5..0b98e7ec63 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeW= orker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeW= orker.c @@ -129,7 +129,7 @@ SerialStatusCodeReportWorker ( CharCount =3D AsciiSPrint (=0D Buffer,=0D sizeof (Buffer),=0D - "%a\n\r",=0D + "%a",=0D ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii=0D );=0D } else {=0D diff --git a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeW= orker.c b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWork= er.c index c0c907b32f..3df0a67126 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c @@ -129,7 +129,7 @@ SerialStatusCodeReportWorker ( CharCount =3D AsciiSPrint (=0D Buffer,=0D sizeof (Buffer),=0D - "%a\n\r",=0D + "%a",=0D ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii=0D );=0D } else {=0D --=20 2.24.0.windows.2