]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Mcast_ip_to_mac.c
MdeModulePkg: Add unload support for SnpDxe and fix NULL ImageHandle in EfiLibInstall...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Mcast_ip_to_mac.c
index e11b54afaada4f39ede3abd56756cd86fbe79815..23dba901942ae54c9cc4ae6731576e8e4325892c 100644 (file)
@@ -2,8 +2,8 @@
                Implementation of converting an multicast IP address to multicast HW MAC\r
                address.\r
  \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
+Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
 http://opensource.org/licenses/bsd-license.php \r
@@ -45,8 +45,8 @@ PxeIp2Mac (
   Db                  = Snp->Db;\r
   Snp->Cdb.OpCode     = PXE_OPCODE_MCAST_IP_TO_MAC;\r
   Snp->Cdb.OpFlags    = (UINT16) (IPv6 ? PXE_OPFLAGS_MCAST_IPV6_TO_MAC : PXE_OPFLAGS_MCAST_IPV4_TO_MAC);\r
-  Snp->Cdb.CPBsize    = sizeof (PXE_CPB_MCAST_IP_TO_MAC);\r
-  Snp->Cdb.DBsize     = sizeof (PXE_DB_MCAST_IP_TO_MAC);\r
+  Snp->Cdb.CPBsize    = (UINT16) sizeof (PXE_CPB_MCAST_IP_TO_MAC);\r
+  Snp->Cdb.DBsize     = (UINT16) sizeof (PXE_DB_MCAST_IP_TO_MAC);\r
 \r
   Snp->Cdb.CPBaddr    = (UINT64)(UINTN) Cpb;\r
   Snp->Cdb.DBaddr     = (UINT64)(UINTN) Db;\r
@@ -61,7 +61,7 @@ PxeIp2Mac (
   //\r
   // Issue UNDI command and check result.\r
   //\r
-  DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac()  "));\r
+  DEBUG ((EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac()  "));\r
 \r
   (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
 \r
@@ -74,7 +74,7 @@ PxeIp2Mac (
 \r
   case PXE_STATCODE_UNSUPPORTED:\r
     DEBUG (\r
-      (EFI_D_ERROR | EFI_D_NET,\r
+      (EFI_D_NET,\r
       "\nSnp->undi.mcast_ip_to_mac()  %xh:%xh\n",\r
       Snp->Cdb.StatFlags,\r
       Snp->Cdb.StatCode)\r
@@ -87,7 +87,7 @@ PxeIp2Mac (
     // to caller.\r
     //\r
     DEBUG (\r
-      (EFI_D_ERROR | EFI_D_NET,\r
+      (EFI_D_NET,\r
       "\nSnp->undi.mcast_ip_to_mac()  %xh:%xh\n",\r
       Snp->Cdb.StatFlags,\r
       Snp->Cdb.StatCode)\r