From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web09.4606.1662157382724459575 for ; Fri, 02 Sep 2022 15:23:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@linux.microsoft.com header.s=default header.b=iSjeF+F6; spf=pass (domain: linux.microsoft.com, ip: 13.77.154.182, mailfrom: mikuback@linux.microsoft.com) Received: from localhost.localdomain (unknown [47.195.228.134]) by linux.microsoft.com (Postfix) with ESMTPSA id 9CAE020C31B8; Fri, 2 Sep 2022 15:23:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9CAE020C31B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1662157382; bh=7DUV1tdLFXhgqWlEGprQkXYIjXey/T0v8I25040sJ2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iSjeF+F66tvxGSSUAhxQxINK3l/nXNYpizfcbroXpmFR1i4rp4ZNcz4LcyHak7Cft FKlCc2TcCy+fNFeNK5BC3gWWMI9Ibwl8DleLygqHygTOvOBTLfLSWf//4J4DSSuIGO U2H+Ps4ofIkNrWMEzrRQnTjQiDq7IPmtHikSFXgk= From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , David Woodhouse Subject: [PATCH v3 8/8] OvmfPkg/LegacyBootManagerLib: Fix debug macro arguments Date: Fri, 2 Sep 2022 18:22:06 -0400 Message-Id: <20220902222206.1509-9-mikuback@linux.microsoft.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220902222206.1509-1-mikuback@linux.microsoft.com> References: <20220902222206.1509-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Kubacki The DEBUG macro updated in this patch previously contained 11 print specifiers in the debug string but passeed 13 arguments. This change attempts to update the macro to the author's intention so the number of specifiers match the number of arguments. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: David Woodhouse Signed-off-by: Michael Kubacki --- OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c b/OvmfPkg/Csm/Le= gacyBootManagerLib/LegacyBm.c index 032aacba68de..2e92bce726a9 100644 --- a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c +++ b/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c @@ -1159,8 +1159,8 @@ LegacyBmPrintBbsTable ( UINT16 Index; =20 DEBUG ((DEBUG_INFO, "\n")); - DEBUG ((DEBUG_INFO, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs\n"))= ; - DEBUG ((DEBUG_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D\n")); + DEBUG ((DEBUG_INFO, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs mseg= dseg\n")); + DEBUG ((DEBUG_INFO, "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n")); for (Index =3D 0; Index < BbsCount; Index++) { if (!LegacyBmValidBbsEntry (&LocalBbsTable[Index])) { continue; @@ -1168,7 +1168,7 @@ LegacyBmPrintBbsTable ( =20 DEBUG ( (DEBUG_INFO, - " %02x: %04x %02x/%02x/%02x %02x/%02x %04x %04x %04x:%04x\n", + " %02x: %04x %02x/%02x/%02x %02x/%02x %04x %04x %04x:%04x %04x %0= 4x\n", (UINTN)Index, (UINTN)LocalBbsTable[Index].BootPriority, (UINTN)LocalBbsTable[Index].Bus, --=20 2.28.0.windows.1