NetworkPkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
5f289f3ae3
commit
c49ca4a29e
@@ -50,7 +50,7 @@ IssueHwUndiCommand (
|
||||
UINT64 Cdb
|
||||
)
|
||||
{
|
||||
DEBUG ((EFI_D_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
||||
DEBUG ((DEBUG_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
||||
|
||||
if (Cdb == 0) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
@@ -149,12 +149,12 @@ SimpleNetworkDriverSupported (
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (Status == EFI_ALREADY_STARTED) {
|
||||
DEBUG ((EFI_D_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
||||
}
|
||||
return Status;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
||||
|
||||
//
|
||||
// check the version, we don't want to connect to the undi16
|
||||
@@ -167,7 +167,7 @@ SimpleNetworkDriverSupported (
|
||||
// Check to see if !PXE structure is valid. Paragraph alignment of !PXE structure is required.
|
||||
//
|
||||
if ((NiiProtocol->Id & 0x0F) != 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
@@ -178,25 +178,25 @@ SimpleNetworkDriverSupported (
|
||||
// Verify !PXE revisions.
|
||||
//
|
||||
if (Pxe->hw.Signature != PXE_ROMID_SIGNATURE) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE signature is not valid.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE signature is not valid.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->hw.Rev < PXE_ROMID_REV) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.Rev is not supported.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.Rev is not supported.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->hw.MajorVer < PXE_ROMID_MAJORVER) {
|
||||
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.MajorVer is not supported.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.MajorVer is not supported.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
|
||||
} else if (Pxe->hw.MajorVer == PXE_ROMID_MAJORVER && Pxe->hw.MinorVer < PXE_ROMID_MINORVER) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.MinorVer is not supported."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.MinorVer is not supported."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
@@ -205,20 +205,20 @@ SimpleNetworkDriverSupported (
|
||||
//
|
||||
if ((Pxe->hw.Implementation & PXE_ROMID_IMP_HW_UNDI) == 0) {
|
||||
if (Pxe->sw.EntryPoint < Pxe->sw.Len) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE S/W entry point is not valid."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE S/W entry point is not valid."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->sw.BusCnt == 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.BusCnt is zero."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.BusCnt is zero."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
}
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
DEBUG ((EFI_D_INFO, "Support(): supported on %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): supported on %p\n", Controller));
|
||||
|
||||
Done:
|
||||
gBS->CloseProtocol (
|
||||
@@ -271,7 +271,7 @@ SimpleNetworkDriverStart (
|
||||
BOOLEAN FoundIoBar;
|
||||
BOOLEAN FoundMemoryBar;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
||||
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
@@ -328,12 +328,12 @@ SimpleNetworkDriverStart (
|
||||
return Status;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "Start(): UNDI3.1 found\n"));
|
||||
DEBUG ((DEBUG_INFO, "Start(): UNDI3.1 found\n"));
|
||||
|
||||
Pxe = (PXE_UNDI *) (UINTN) (Nii->Id);
|
||||
|
||||
if (Calc8BitCksum (Pxe, Pxe->hw.Len) != 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE checksum is not correct.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE checksum is not correct.\n"));
|
||||
goto NiiError;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ SimpleNetworkDriverStart (
|
||||
// broadcast support or we cannot do DHCP!
|
||||
//
|
||||
} else {
|
||||
DEBUG ((EFI_D_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
||||
DEBUG ((DEBUG_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
||||
goto NiiError;
|
||||
}
|
||||
//
|
||||
@@ -365,7 +365,7 @@ SimpleNetworkDriverStart (
|
||||
);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
||||
DEBUG ((DEBUG_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
||||
goto NiiError;
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ SimpleNetworkDriverStart (
|
||||
);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nCould not allocate CPB and DB structures.\n"));
|
||||
DEBUG ((DEBUG_NET, "\nCould not allocate CPB and DB structures.\n"));
|
||||
goto Error_DeleteSNP;
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ SimpleNetworkDriverStart (
|
||||
Snp->Cdb.IFnum = Snp->IfNum;
|
||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.get_init_info() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.get_init_info() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
@@ -529,7 +529,7 @@ SimpleNetworkDriverStart (
|
||||
InitStatFlags = Snp->Cdb.StatFlags;
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
PxeStop (Snp);
|
||||
goto Error_DeleteSNP;
|
||||
}
|
||||
@@ -627,7 +627,7 @@ SimpleNetworkDriverStart (
|
||||
Status = PxeGetStnAddr (Snp);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
||||
PxeShutdown (Snp);
|
||||
PxeStop (Snp);
|
||||
goto Error_DeleteSNP;
|
||||
|
Reference in New Issue
Block a user