From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web11.2026.1578044457090132405 for ; Fri, 03 Jan 2020 01:40:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Zohd+aaG; spf=pass (domain: redhat.com, ip: 205.139.110.61, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578044456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OwmGFyIMUSa4zr7bZ6KuBAzySRvAAXIl1/v6gFMtqpI=; b=Zohd+aaG8vg65SJVYeLORhJHdCIHr4CdMbaAQbZuFnjPQ/boG+siHDw47MUsNRjbNytuKS KmuNjOrT9RsvZQq/BGYynqv3q1Cz8NdeOwKjL0CF1MF5dH4vlytYl84LgfKHFf59Rt5bzf SNFs2mpkNwwDIVfCokuTrXRr3ynzBrk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-48-cvvcydRaMBqJQtUS2DD8kg-1; Fri, 03 Jan 2020 04:40:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9ED89800EB8; Fri, 3 Jan 2020 09:40:53 +0000 (UTC) Received: from x1w.redhat.com (ovpn-116-190.ams2.redhat.com [10.36.116.190]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BC19060BF7; Fri, 3 Jan 2020 09:40:51 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jiaxin Wu , Siyuan Fu , Maciej Rabeda , Philippe Mathieu-Daude Subject: [PATCH v2 43/78] NetworkPkg/MnpDxe: Fix various typos Date: Fri, 3 Jan 2020 10:07:37 +0100 Message-Id: <20200103090812.10592-44-philmd@redhat.com> In-Reply-To: <20200103090812.10592-1-philmd@redhat.com> References: <20200103090812.10592-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: cvvcydRaMBqJQtUS2DD8kg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in documentation, comments and debug strings. Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Maciej Rabeda Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Maciej Rabeda Signed-off-by: Philippe Mathieu-Daude --- NetworkPkg/MnpDxe/MnpDxe.inf | 2 +- NetworkPkg/MnpDxe/MnpDriver.h | 6 +++--- NetworkPkg/MnpDxe/MnpImpl.h | 14 +++++++------- NetworkPkg/MnpDxe/MnpConfig.c | 14 +++++++------- NetworkPkg/MnpDxe/MnpDriver.c | 10 +++++----- NetworkPkg/MnpDxe/MnpIo.c | 8 ++++---- NetworkPkg/MnpDxe/MnpMain.c | 6 +++--- NetworkPkg/MnpDxe/MnpDxe.uni | 4 ++-- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/NetworkPkg/MnpDxe/MnpDxe.inf b/NetworkPkg/MnpDxe/MnpDxe.inf index 7280060dded1..608e52aa51d8 100644 --- a/NetworkPkg/MnpDxe/MnpDxe.inf +++ b/NetworkPkg/MnpDxe/MnpDxe.inf @@ -1,5 +1,5 @@ ## @file -# This module produces EFI MNP Protocol, EFI MNP Servie Binding Protocol = and EFI VLAN Protocol. +# This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol= and EFI VLAN Protocol. # # This module produces EFI Managed Network Protocol upon EFI Simple Netwo= rk Protocol, # to provide raw asynchronous network I/O services. It also produces EFI = VLAN Protocol diff --git a/NetworkPkg/MnpDxe/MnpDriver.h b/NetworkPkg/MnpDxe/MnpDriver.h index 150d21e9ec16..4837cd0534b2 100644 --- a/NetworkPkg/MnpDxe/MnpDriver.h +++ b/NetworkPkg/MnpDxe/MnpDriver.h @@ -1,5 +1,5 @@ /** @file - Declaration of strctures and functions for MnpDxe driver. + Declaration of structures and functions for MnpDxe driver. =20 Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -223,7 +223,7 @@ MnpDriverBindingStop ( it is not NULL, then the I/O services= are added to the existing child handle. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle= . + @retval EFI_SUCCESS The protocol was added to ChildHandle= . @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources availa= ble to create the child. @@ -248,7 +248,7 @@ MnpServiceBindingCreateChild ( instance. @param[in] ChildHandle Handle of the child to destroy. =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle= . + @retval EFI_SUCCESS The protocol was removed from ChildHandle= . @retval EFI_UNSUPPORTED ChildHandle does not support the protocol= that is being removed. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. diff --git a/NetworkPkg/MnpDxe/MnpImpl.h b/NetworkPkg/MnpDxe/MnpImpl.h index 7d5424034659..e91408c6c9bd 100644 --- a/NetworkPkg/MnpDxe/MnpImpl.h +++ b/NetworkPkg/MnpDxe/MnpImpl.h @@ -284,7 +284,7 @@ MnpFlushRcvdDataQueue ( =20 @param[in, out] Instance Pointer to the mnp instance context data. @param[in] ConfigData Pointer to the configuration data used to = configure - the isntance. + the instance. =20 @retval EFI_SUCCESS The Instance is configured. @retval EFI_UNSUPPORTED EnableReceiveTimestamps is on and the @@ -361,12 +361,12 @@ MnpBuildTxPacket ( /** Synchronously send out the packet. =20 - This functon places the packet buffer to SNP driver's tansmit queue. The= packet - can be considered successfully sent out once SNP acccetp the packet, whi= le the + This function places the packet buffer to SNP driver's tansmit queue. Th= e packet + can be considered successfully sent out once SNP accept the packet, whil= e the packet buffer recycle is deferred for better performance. =20 @param[in] MnpServiceData Pointer to the mnp service context = data. - @param[in] Packet Pointer to the pakcet buffer. + @param[in] Packet Pointer to the packet buffer. @param[in] Length The length of the packet. @param[in, out] Token Pointer to the token the packet gen= erated from. =20 @@ -404,7 +404,7 @@ MnpInstanceDeliverPacket ( packet. =20 @param[in] Event The event this notify function registere= d to. - @param[in] Context Pointer to the context data registerd to= the Event. + @param[in] Context Pointer to the context data registered t= o the Event. =20 **/ VOID @@ -480,8 +480,8 @@ MnpAllocTxBuf ( =20 @param[in, out] MnpDeviceData Pointer to the mnp device context dat= a. =20 - @retval EFI_SUCCESS Successed to recyclethe transmitted buff= er address. - @retval Others Failed to recyclethe transmitted buffer = address. + @retval EFI_SUCCESS Successed to recycle the transmitted buf= fer address. + @retval Others Failed to recycle the transmitted buffer= address. =20 **/ EFI_STATUS diff --git a/NetworkPkg/MnpDxe/MnpConfig.c b/NetworkPkg/MnpDxe/MnpConfig.c index 5906ad546fb2..416be0bbb65a 100644 --- a/NetworkPkg/MnpDxe/MnpConfig.c +++ b/NetworkPkg/MnpDxe/MnpConfig.c @@ -707,7 +707,7 @@ MnpCreateServiceData ( // MnpServiceData =3D AllocateZeroPool (sizeof (MNP_SERVICE_DATA)); if (MnpServiceData =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Faild to allocate memory f= or the new Mnp Service Data.\n")); + DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Failed to allocate memory = for the new Mnp Service Data.\n")); =20 return NULL; } @@ -742,7 +742,7 @@ MnpCreateServiceData ( &MnpServiceData->DevicePath ); if (MnpServiceHandle =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Faild to create child ha= ndle.\n")); + DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Failed to create child h= andle.\n")); =20 return NULL; } @@ -1325,7 +1325,7 @@ MnpStop ( =20 if (MnpDeviceData->ConfiguredChildrenNumber > 0) { // - // If there are other configured chilren, return and keep the timers a= nd + // If there are other configured children, return and keep the timers = and // simple network unchanged. // return EFI_SUCCESS; @@ -1402,7 +1402,7 @@ MnpFlushRcvdDataQueue ( =20 @param[in, out] Instance Pointer to the mnp instance context data. @param[in] ConfigData Pointer to the configuration data used to = configure - the isntance. + the instance. =20 @retval EFI_SUCCESS The Instance is configured. @retval EFI_UNSUPPORTED EnableReceiveTimestamps is on and the @@ -1605,7 +1605,7 @@ MnpConfigReceiveFilters ( EnableFilterBits |=3D EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST; =20 // - // Allocate pool for the mulicast addresses. + // Allocate pool for the multicast addresses. // MCastFilterCnt =3D MnpDeviceData->GroupAddressCount; MCastFilter =3D AllocatePool (sizeof (EFI_MAC_ADDRESS) * MCastFi= lterCnt); @@ -1696,7 +1696,7 @@ MnpConfigReceiveFilters ( =20 @param[in, out] Instance Pointer to the mnp instance context dat= a. @param[in, out] CtrlBlk Pointer to the group address control bl= ock. - @param[in, out] GroupAddress Pointer to the group adress. + @param[in, out] GroupAddress Pointer to the group address. @param[in] MacAddress Pointer to the mac address. @param[in] HwAddressSize The hardware address size. =20 @@ -1851,7 +1851,7 @@ MnpGroupOp ( =20 if (JoinFlag) { // - // A new gropu address is to be added. + // A new group address is to be added. // GroupAddress =3D NULL; AddressExist =3D FALSE; diff --git a/NetworkPkg/MnpDxe/MnpDriver.c b/NetworkPkg/MnpDxe/MnpDriver.c index e99e7c5a6166..e27dcf940b7f 100644 --- a/NetworkPkg/MnpDxe/MnpDriver.c +++ b/NetworkPkg/MnpDxe/MnpDriver.c @@ -110,7 +110,7 @@ MnpDriverBindingSupported ( } =20 // - // Close the openned SNP protocol. + // Close the opened SNP protocol. // gBS->CloseProtocol ( ControllerHandle, @@ -419,7 +419,7 @@ MnpDriverBindingStop ( it is not NULL, then the I/O services= are added to the existing child handle. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle= . + @retval EFI_SUCCESS The protocol was added to ChildHandle= . @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources availa= ble to create the child. @@ -450,7 +450,7 @@ MnpServiceBindingCreateChild ( // Instance =3D AllocateZeroPool (sizeof (MNP_INSTANCE_DATA)); if (Instance =3D=3D NULL) { - DEBUG ((EFI_D_ERROR, "MnpServiceBindingCreateChild: Faild to allocate = memory for the new instance.\n")); + DEBUG ((EFI_D_ERROR, "MnpServiceBindingCreateChild: Failed to allocate= memory for the new instance.\n")); =20 return EFI_OUT_OF_RESOURCES; } @@ -535,7 +535,7 @@ ErrorExit: instance. @param[in] ChildHandle Handle of the child to destroy. =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle= . + @retval EFI_SUCCESS The protocol was removed from ChildHandle= . @retval EFI_UNSUPPORTED ChildHandle does not support the protocol= that is being removed. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @@ -660,7 +660,7 @@ MnpServiceBindingDestroyChild ( @param[in] ImageHandle The image handle of the driver. @param[in] SystemTable The system table. =20 - @retval EFI_SUCCES The driver binding and component name protocols= are + @retval EFI_SUCCESS The driver binding and component name protocols= are successfully installed. @retval Others Other errors as indicated. =20 diff --git a/NetworkPkg/MnpDxe/MnpIo.c b/NetworkPkg/MnpDxe/MnpIo.c index 56405d62b5e0..ae4a18fd81ac 100644 --- a/NetworkPkg/MnpDxe/MnpIo.c +++ b/NetworkPkg/MnpDxe/MnpIo.c @@ -190,12 +190,12 @@ MnpBuildTxPacket ( /** Synchronously send out the packet. =20 - This functon places the packet buffer to SNP driver's tansmit queue. The= packet - can be considered successfully sent out once SNP acccetp the packet, whi= le the + This function places the packet buffer to SNP driver's tansmit queue. Th= e packet + can be considered successfully sent out once SNP accept the packet, whil= e the packet buffer recycle is deferred for better performance. =20 @param[in] MnpServiceData Pointer to the mnp service context = data. - @param[in] Packet Pointer to the pakcet buffer. + @param[in] Packet Pointer to the packet buffer. @param[in] Length The length of the packet. @param[in, out] Token Pointer to the token the packet gen= erated from. =20 @@ -422,7 +422,7 @@ MnpDeliverPacket ( packet. =20 @param[in] Event The event this notify function registere= d to. - @param[in] Context Pointer to the context data registerd to= the Event. + @param[in] Context Pointer to the context data registered t= o the Event. =20 **/ VOID diff --git a/NetworkPkg/MnpDxe/MnpMain.c b/NetworkPkg/MnpDxe/MnpMain.c index d96178a1d994..ff7e89de103e 100644 --- a/NetworkPkg/MnpDxe/MnpMain.c +++ b/NetworkPkg/MnpDxe/MnpMain.c @@ -376,8 +376,8 @@ MnpGroups ( if ((!Instance->ConfigData.EnableMulticastReceive) || ((MacAddress !=3D NULL) && !NET_MAC_IS_MULTICAST (MacAddress, &SnpMode= ->BroadcastAddress, SnpMode->HwAddressSize))) { // - // The instance isn't configured to do mulitcast receive. OR - // the passed in MacAddress is not a mutlticast mac address. + // The instance isn't configured to do multicast receive. OR + // the passed in MacAddress is not a multicast mac address. // Status =3D EFI_INVALID_PARAMETER; goto ON_EXIT; @@ -713,7 +713,7 @@ MnpCancel ( } =20 // - // Dispatch the DPC queued by the NotifyFunction of the cancled token's = events. + // Dispatch the DPC queued by the NotifyFunction of the canceled token's= events. // DispatchDpc (); =20 diff --git a/NetworkPkg/MnpDxe/MnpDxe.uni b/NetworkPkg/MnpDxe/MnpDxe.uni index 04be3cd7fe5a..481e791499fe 100644 --- a/NetworkPkg/MnpDxe/MnpDxe.uni +++ b/NetworkPkg/MnpDxe/MnpDxe.uni @@ -1,5 +1,5 @@ // /** @file -// This module produces EFI MNP Protocol, EFI MNP Servie Binding Protocol = and EFI VLAN Protocol. +// This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol= and EFI VLAN Protocol. // // This module produces EFI Managed Network Protocol upon EFI Simple Netwo= rk Protocol, // to provide raw asynchronous network I/O services. It also produces EFI = VLAN Protocol @@ -12,7 +12,7 @@ // **/ =20 =20 -#string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP = Protocol, EFI MNP Servie Binding Protocol and EFI VLAN Protocol" +#string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP = Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol" =20 #string STR_MODULE_DESCRIPTION #language en-US "This module produ= ces EFI Managed Network Protocol upon EFI Simple Network Protocol to provid= e raw asynchronous network I/O services. It also produces EFI VLAN Protocol= to provide manageability interface for VLAN configuration." =20 --=20 2.21.0