From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web08.1772.1657849409978423153 for ; Thu, 14 Jul 2022 18:43:30 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=aYEtFtp2; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1657849410; x=1689385410; h=from:to:cc:subject:date:message-id; bh=k8K8FmXbwA/pKbxha97+TMWy1TKQLDcZSUzz+afjF1k=; b=aYEtFtp23ZetH+l1HyZZaY0ieUzVSV9ZE+TLQsZajuammEzt54ogC/kH s5rAO/2NB86EvyZFeC9Uus2AhXYpQ2aWXlOHaa1hasyCa2qG/IcscX449 qhnDLVZSddHDE35cYu8paz1foapzgIyI6Z+JilF+sKEhFQLfdad+lunTM vuj35UqBBj2uIqmdVYIj1HV3l/qE1m/3/gQOqidKV8hb4wqL+BwhxcxjS hmQU+KEW4uyAVX1sZve5eqmD+Yj0g1iuwS//5W9K2tVcrOYZ4yR6IuvZV GbgBVHJzYAw7FFkw+cdToVyJQT2X86cg0GCw4lyxxtB0IRHG42GKjd9p4 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="371992306" X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="371992306" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 18:43:29 -0700 X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="923317368" Received: from gnarendr-mobl1.amr.corp.intel.com (HELO cosmolai-mobl1.gar.corp.intel.com) ([10.212.130.99]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 18:43:28 -0700 From: "Cosmo Lai" To: devel@edk2.groups.io Cc: Cosmo Lai , Jian J Wang , Liming Gao , Dandan Bi Subject: [PATCH v3] MdeModulePkg/Include: Long debug string is truncated to 104 char Date: Fri, 15 Jul 2022 09:43:12 +0800 Message-Id: <83e97457873d93c8b1eab91b513aae2e444e08ca.1657849347.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. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi 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