X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FSnp.c;h=0006c447a6c7d922c2386a7121ab37c409883701;hp=58451608e5737f30be2cc7f719068f1233b06ae1;hb=9cff2f8d3687aeed765e1ee787c18ce70ae500bc;hpb=6c6004f491ab5ca004478b3fd60e6b7f34eae067;ds=sidebyside diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c index 58451608e5..0006c447a6 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c @@ -155,7 +155,7 @@ SimpleNetworkDriverSupported ( // Check to see if !PXE structure is valid. Paragraph alignment of !PXE structure is required. // if (NiiProtocol->ID & 0x0F) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE structure is not paragraph aligned.\n")); + DEBUG ((EFI_D_NET, "\n!PXE structure is not paragraph aligned.\n")); Status = EFI_UNSUPPORTED; goto Done; } @@ -166,25 +166,25 @@ SimpleNetworkDriverSupported ( // Verify !PXE revisions. // if (Pxe->hw.Signature != PXE_ROMID_SIGNATURE) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE signature is not valid.\n")); + DEBUG ((EFI_D_NET, "\n!PXE signature is not valid.\n")); Status = EFI_UNSUPPORTED; goto Done; } if (Pxe->hw.Rev < PXE_ROMID_REV) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE.Rev is not supported.\n")); + DEBUG ((EFI_D_NET, "\n!PXE.Rev is not supported.\n")); Status = EFI_UNSUPPORTED; goto Done; } if (Pxe->hw.MajorVer < PXE_ROMID_MAJORVER) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE.MajorVer is not supported.\n")); + DEBUG ((EFI_D_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_ERROR | EFI_D_NET, "\n!PXE.MinorVer is not supported.")); + DEBUG ((EFI_D_NET, "\n!PXE.MinorVer is not supported.")); Status = EFI_UNSUPPORTED; goto Done; } @@ -193,13 +193,13 @@ SimpleNetworkDriverSupported ( // if ((Pxe->hw.Implementation & PXE_ROMID_IMP_HW_UNDI) == 0) { if (Pxe->sw.EntryPoint < Pxe->sw.Len) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE S/W entry point is not valid.")); + DEBUG ((EFI_D_NET, "\n!PXE S/W entry point is not valid.")); Status = EFI_UNSUPPORTED; goto Done; } if (Pxe->sw.BusCnt == 0) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE.BusCnt is zero.")); + DEBUG ((EFI_D_NET, "\n!PXE.BusCnt is zero.")); Status = EFI_UNSUPPORTED; goto Done; } @@ -258,7 +258,7 @@ SimpleNetworkDriverStart ( UINT8 BarIndex; PXE_STATFLAGS InitStatFlags; - DEBUG ((EFI_D_INFO, "\nSnpNotifyNetworkInterfaceIdentifier() ")); + DEBUG ((EFI_D_NET, "\nSnpNotifyNetworkInterfaceIdentifier() ")); Status = gBS->OpenProtocol ( Controller, @@ -320,7 +320,7 @@ SimpleNetworkDriverStart ( Pxe = (PXE_UNDI *) (UINTN) (Nii->ID); if (Calc8BitCksum (Pxe, Pxe->hw.Len) != 0) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\n!PXE checksum is not correct.\n")); + DEBUG ((EFI_D_NET, "\n!PXE checksum is not correct.\n")); goto NiiError; } @@ -335,7 +335,7 @@ SimpleNetworkDriverStart ( // broadcast support or we cannot do DHCP! // } else { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\nUNDI does not have promiscuous or broadcast support.")); + DEBUG ((EFI_D_NET, "\nUNDI does not have promiscuous or broadcast support.")); goto NiiError; } // @@ -352,7 +352,7 @@ SimpleNetworkDriverStart ( ); if (Status != EFI_SUCCESS) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\nCould not allocate SNP_DRIVER structure.\n")); + DEBUG ((EFI_D_NET, "\nCould not allocate SNP_DRIVER structure.\n")); goto NiiError; } @@ -426,7 +426,7 @@ SimpleNetworkDriverStart ( ); if (Status != EFI_SUCCESS) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\nCould not allocate CPB and DB structures.\n")); + DEBUG ((EFI_D_NET, "\nCould not allocate CPB and DB structures.\n")); goto Error_DeleteSNP; } @@ -468,7 +468,7 @@ SimpleNetworkDriverStart ( Snp->Cdb.IFnum = Snp->IfNum; Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST; - DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.get_init_info() ")); + DEBUG ((EFI_D_NET, "\nSnp->undi.get_init_info() ")); (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb); @@ -478,7 +478,7 @@ SimpleNetworkDriverStart ( InitStatFlags = Snp->Cdb.StatFlags; if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode)); + DEBUG ((EFI_D_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode)); PxeStop (Snp); goto Error_DeleteSNP; } @@ -498,12 +498,12 @@ SimpleNetworkDriverStart ( Snp->Cdb.IFnum = Snp->IfNum; Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST; - DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.get_config_info() ")); + DEBUG ((EFI_D_NET, "\nSnp->undi.get_config_info() ")); (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb); if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) { - DEBUG ((EFI_D_ERROR | EFI_D_NET, "\nSnp->undi.config_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode)); + DEBUG ((EFI_D_NET, "\nSnp->undi.config_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode)); PxeStop (Snp); goto Error_DeleteSNP; }