From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0112EAC1188 for ; Mon, 31 Jul 2023 18:43:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=t4X9bHS+orFO9n3g41hsJ34zlgVbDRnQu/yWDOAiB8o=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-IronPort-AV:X-IronPort-AV:X-Received:X-ExtLoop1:X-IronPort-AV:X-IronPort-AV:X-Received:From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Transfer-Encoding; s=20140610; t=1690829028; v=1; b=MzXS3EPhZhWAm7W0IExyE6NWsYFhDndKnDis30eCLz3rU7EhnOAyTgphCP6lsmo6JFWc+F5p 3uDumSeDvwXmVBQBQqgYSJ8PNzAyaPC5UtpgcAyNPQ+gF/dZtC1IQ8OhL86jV9cbz76budRh2by n4ABWh3Av/P+9+zQZsGNiTeU= X-Received: by 127.0.0.2 with SMTP id 7JnjYY7687511xzKk0hEP3cK; Mon, 31 Jul 2023 11:43:48 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.203.1690829025624097045 for ; Mon, 31 Jul 2023 11:43:45 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="435413521" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="435413521" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 11:43:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="731673608" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="731673608" X-Received: from nldesimo-desk.amr.corp.intel.com ([10.241.240.243]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 11:43:43 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH 2/2] MdePkg: Add new status codes to PrintLib Date: Mon, 31 Jul 2023 11:43:14 -0700 Message-Id: <20230731184314.1253-3-nathaniel.l.desimone@intel.com> In-Reply-To: <20230731184314.1253-1-nathaniel.l.desimone@intel.com> References: <20230731184314.1253-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nathaniel.l.desimone@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0d2KATEdwxLPBUQCBozpj0mux7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=MzXS3EPh; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4514 PrintLib does not correctly decode the follow status codes: 1. EFI_IP_ADDRESS_CONFLICT 2. EFI_HTTP_ERROR 3. EFI_WARN_FILE_SYSTEM 4. EFI_WARN_RESET_REQUIRED These missing status codes have been added. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Nate DeSimone --- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c index 42b598a432..c666c6614c 100644 --- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c +++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c @@ -8,8 +8,8 @@ #include "PrintLibInternal.h" -#define WARNING_STATUS_NUMBER 5 -#define ERROR_STATUS_NUMBER 33 +#define WARNING_STATUS_NUMBER 7 +#define ERROR_STATUS_NUMBER 35 // // Safe print checks @@ -37,6 +37,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mWarningString[][24+1] = { "Warning Write Failure", // RETURN_WARN_WRITE_FAILURE = 3 "Warning Buffer Too Small", // RETURN_WARN_BUFFER_TOO_SMALL = 4 "Warning Stale Data", // RETURN_WARN_STALE_DATA = 5 + "Warning File System", // RETURN_WARN_FILE_SYSTEM = 6 + "Warning Reset Required", // RETURN_WARN_RESET_REQUIRED = 7 }; // @@ -75,7 +77,9 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mErrorString[][20+1] = { "Reserved (30)", // RESERVED = 30 | MAX_BIT "End of File", // RETURN_END_OF_FILE = 31 | MAX_BIT "Invalid Language", // RETURN_INVALID_LANGUAGE = 32 | MAX_BIT - "Compromised Data" // RETURN_COMPROMISED_DATA = 33 | MAX_BIT + "Compromised Data", // RETURN_COMPROMISED_DATA = 33 | MAX_BIT + "IP Address Conflict", // RETURN_IP_ADDRESS_CONFLICT = 34 | MAX_BIT + "HTTP Error" // RETURN_HTTP_ERROR = 35 | MAX_BIT }; /** -- 2.30.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107407): https://edk2.groups.io/g/devel/message/107407 Mute This Topic: https://groups.io/mt/100468027/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-