From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web09.19511.1657697208793228348 for ; Wed, 13 Jul 2022 00:26:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=f+FYNO21; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: cosmo.lai@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657697209; x=1689233209; h=from:to:cc:subject:date:message-id; bh=MPoYU0g5U06MWsCuFgay/qrgkBqHy4qLjuvbhGCXvC8=; b=f+FYNO21fxOacUL2//TDbZhImonoGlFx15t/XMOufxxmLBfayffS8rYm HZTh1ObTL49Fx4wG/Y31wESciVsk1LESWxizFZC1a6Wcy+QOdud2MZEq+ 87mxmD1KamBjUJkEtQQpiyn5L117ewOl8WqFTDy9Fq8dhLB4nlcOGhDFt PgpTplXq1to3agu3UPcOD3WNtbrA3ZNTVWh7Iqtt6UKh7jc+6/94r/3G0 2NAqDRdl6Ay0SPS2CNvxh8vxSNkriVp3QqqeAH2W6JZ+Abn52Ad0v3Zs/ 2M6fU7yxX75v6XUTrj6hNum8zvPe1oXJVg0lS4oApE//iFKT+TBVhospL g==; X-IronPort-AV: E=McAfee;i="6400,9594,10406"; a="346816891" X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="346816891" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 00:26:37 -0700 X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="545737749" Received: from cosmolai-mobl1.gar.corp.intel.com ([10.209.115.193]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 00:26:35 -0700 From: "Cosmo Lai" To: devel@edk2.groups.io Cc: Cosmo Lai Subject: [PATCH v2] MdeModulePkg/Include: Long debug string is truncated to 104 char Date: Wed, 13 Jul 2022 15:26:10 +0800 Message-Id: <0e7eb78e1f7a1047e7b46eca53766d723cb52abb.1657697129.git.cosmo.lai@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 From: Cosmo Lai REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3986 The EFI_STATUS_CODE_DATA_MAX_SIZE is defined as 200 in MdeModulePkg. After reducing 96byte buffer for variable parameters it is limited to only 104 char debug string. This is a non-necessary limitation. It can be set to 0x200 to follow MAX_EXTENDED_DATA_SIZE (also 0x200) which is used in ReportStatusCodeLib to support longer debug string. Signed-off-by: Cosmo Lai --- MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h b/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h index 16203452e4..2f408a5622 100644 --- a/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h +++ b/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h @@ -21,7 +21,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent /// /// The maximum size of an EFI_DEBUG_INFO structure. /// -#define EFI_STATUS_CODE_DATA_MAX_SIZE 200 +#define EFI_STATUS_CODE_DATA_MAX_SIZE 0x200 /// /// This structure contains the ErrorLevel passed into the DEBUG() macro, followed -- 2.16.2.windows.1