From patchwork Wed Feb 22 15:40:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1746308 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=iLmrbEfC; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DhjC1bn/; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PML3h325Yz23yZ for ; Thu, 23 Feb 2023 02:41:20 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PML3h1tMqz3cDp for ; Thu, 23 Feb 2023 02:41:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=iLmrbEfC; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DhjC1bn/; dkim-atps=neutral X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=thuth@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=iLmrbEfC; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DhjC1bn/; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PML3T0b2Cz3bfs for ; Thu, 23 Feb 2023 02:41:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080462; 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=TmTqIQF4y+w6zACyyhxMDrzGP+gqxKdk+Mzbr8Lhlg0=; b=iLmrbEfC081JjxNtqxevmjsoEXRKgtUB6dChhy4kWyBsHkWPRiVdNL0OwFDRTVjt5aDuxy a/xdG6QNnDEnXDsfDKDG4nD4DTAJ2XThobLYsSABn1CJN/38dGxYqJCa/dnZPVrVB5X5fd DIVLX539MJ9KT6/UiBGjA6PrTZLujkI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080463; 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=TmTqIQF4y+w6zACyyhxMDrzGP+gqxKdk+Mzbr8Lhlg0=; b=DhjC1bn//xhL6a/dEdMbdadUr5nnHBDh+Y59BOjsy+wrj/zf/Ye7xNC8rwJ5nNlai0qpZ+ up80w7tCcvugjH5eqYYEdrk+WmoST7ujUp5HuwqMFlvZVzF5JN2+/2n1L5DteBKoI+Ce4/ NgOJTPWvaMNE9jspbuuUEMFcbiCKOcc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-168-zMggTPLSNBqWMLicUxSwgw-1; Wed, 22 Feb 2023 10:41:01 -0500 X-MC-Unique: zMggTPLSNBqWMLicUxSwgw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 33A0A3C10231; Wed, 22 Feb 2023 15:41:01 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E87540168BC; Wed, 22 Feb 2023 15:41:00 +0000 (UTC) From: Thomas Huth To: slof@lists.ozlabs.org Date: Wed, 22 Feb 2023 16:40:54 +0100 Message-Id: <20230222154057.904578-2-thuth@redhat.com> In-Reply-To: <20230222154057.904578-1-thuth@redhat.com> References: <20230222154057.904578-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [SLOF] [PATCH 1/4] Fix typos in the board-qemu folder X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Found with the "codespell" utility. Signed-off-by: Thomas Huth --- board-qemu/include/nvramlog.h | 2 +- board-qemu/slof/OF.fs | 2 +- board-qemu/slof/fdt.fs | 6 +++--- board-qemu/slof/pci-device_1013_00b8.fs | 4 ++-- board-qemu/slof/qemu-vga.fs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/board-qemu/include/nvramlog.h b/board-qemu/include/nvramlog.h index d130255..1550916 100644 --- a/board-qemu/include/nvramlog.h +++ b/board-qemu/include/nvramlog.h @@ -21,7 +21,7 @@ * 01h - checksum ( 1 byte) * 02h - length ( 2 byte) value = 1st_byte*256 + 2nd_byte * 04h - name (12 byte) - * space for partiton header = 16 byte + * space for partition header = 16 byte * * Log Header * 10h - offset ( 2 byte) from Partition Header to Data Section diff --git a/board-qemu/slof/OF.fs b/board-qemu/slof/OF.fs index 3bcb2af..df33c80 100644 --- a/board-qemu/slof/OF.fs +++ b/board-qemu/slof/OF.fs @@ -340,7 +340,7 @@ cr #include "copyright-oss.fs" cr cr -\ this CATCH is to ensure the code bellow always executes: boot may ABORT! +\ this CATCH is to ensure the code below always executes: boot may ABORT! ' start-it CATCH drop : boot diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs index 78d2efe..e94d00e 100644 --- a/board-qemu/slof/fdt.fs +++ b/board-qemu/slof/fdt.fs @@ -84,7 +84,7 @@ fdt-start fdt-init drop -1 throw EXIT THEN dup >fdth_version l@ 10 < IF - ." Flat device tree has usupported version !" cr + ." Flat device tree has unsupported version !" cr drop -1 throw EXIT THEN @@ -352,7 +352,7 @@ fdt-claim-reserve ; : (fdt-patch-interrupt-map) ( prop-addr prop-len -- ) - \ interrupt-controller phandle is expected to be the same accross the map + \ interrupt-controller phandle is expected to be the same across the map over 10 + l@ phandle>node ?dup 0= IF 2drop EXIT THEN -rot fdt-debug IF ." ### Patching interrupt-map: " over 10 + l@ . ." => " 2 pick . cr THEN @@ -501,7 +501,7 @@ r> drop fdt-cas-pass 0 <> IF \ We could not find the node added in the previous pass, \ most likely because it is hotplug-under-hotplug case - \ (such as PCI brigde under bridge) when missing new node methods + \ (such as PCI bridge under bridge) when missing new node methods \ such as "decode-unit" are critical. \ Reboot when detect such case which is expected as it is a part of \ ibm,client-architecture-support. diff --git a/board-qemu/slof/pci-device_1013_00b8.fs b/board-qemu/slof/pci-device_1013_00b8.fs index c3ac2ec..91ca262 100644 --- a/board-qemu/slof/pci-device_1013_00b8.fs +++ b/board-qemu/slof/pci-device_1013_00b8.fs @@ -12,7 +12,7 @@ my-space pci-device-generic-setup -\ Defaults, overriden from qemu +\ Defaults, overridden from qemu d# 800 VALUE disp-width d# 600 VALUE disp-height d# 8 VALUE disp-depth @@ -125,7 +125,7 @@ include graphics.fs 12 06 vga-seq! \ unlock extensions 05 06 vga-gfx! \ graphic mode \ set bit depth. Note: we should set the hidden - \ dac register to differenciate 15 and 16bpp, but + \ dac register to differentiate 15 and 16bpp, but \ it's annoying and in practice we don't care as \ we are only displaying in black & white atm disp-depth CASE \ set depth diff --git a/board-qemu/slof/qemu-vga.fs b/board-qemu/slof/qemu-vga.fs index 3f4c237..8a2dd52 100644 --- a/board-qemu/slof/qemu-vga.fs +++ b/board-qemu/slof/qemu-vga.fs @@ -12,7 +12,7 @@ my-space pci-device-generic-setup -\ Defaults, overriden from qemu +\ Defaults, overridden from qemu d# 800 VALUE disp-width d# 600 VALUE disp-height d# 8 VALUE disp-depth From patchwork Wed Feb 22 15:40:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1746306 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PML3b0sDgz23yZ for ; Thu, 23 Feb 2023 02:41:15 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PML3Z6dncz3c73 for ; Thu, 23 Feb 2023 02:41:14 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim-atps=neutral X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=thuth@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Fvphfxyw; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PML3T0XhNz3bfp for ; Thu, 23 Feb 2023 02:41:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080464; 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=dfAk+5ugqIisNFMsmHRyySygPiGjg7MBiFR8wN3OlsM=; b=FvphfxywEm3uRkypz/AcToGjrpyJl2zUylfHFKPdnDY3ETiSoUY1I/2gqp6FdJFKqleuiG Z+qCAv6qHrcvYYa+sQc3YP2gLfeb32RSwB/J7ht+Qrkr1PasHjTxXw9HujqaC1JcIo2Wxl aFZ1BMckGOJbEv7ogHSgzYISPkxxxLA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080464; 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=dfAk+5ugqIisNFMsmHRyySygPiGjg7MBiFR8wN3OlsM=; b=FvphfxywEm3uRkypz/AcToGjrpyJl2zUylfHFKPdnDY3ETiSoUY1I/2gqp6FdJFKqleuiG Z+qCAv6qHrcvYYa+sQc3YP2gLfeb32RSwB/J7ht+Qrkr1PasHjTxXw9HujqaC1JcIo2Wxl aFZ1BMckGOJbEv7ogHSgzYISPkxxxLA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-173-gqZZwTBnMCCywhZ6p5k3wg-1; Wed, 22 Feb 2023 10:41:02 -0500 X-MC-Unique: gqZZwTBnMCCywhZ6p5k3wg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 117D83C1023B; Wed, 22 Feb 2023 15:41:02 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 72A9340168BC; Wed, 22 Feb 2023 15:41:01 +0000 (UTC) From: Thomas Huth To: slof@lists.ozlabs.org Date: Wed, 22 Feb 2023 16:40:55 +0100 Message-Id: <20230222154057.904578-3-thuth@redhat.com> In-Reply-To: <20230222154057.904578-1-thuth@redhat.com> References: <20230222154057.904578-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [SLOF] [PATCH 2/4] Fix typos in the lib/libnet folder X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Found with the "codespell" utility. Signed-off-by: Thomas Huth --- lib/libnet/dhcp.c | 6 +++--- lib/libnet/dns.c | 4 ++-- lib/libnet/icmpv6.c | 6 +++--- lib/libnet/ipv4.c | 6 +++--- lib/libnet/ipv6.c | 8 ++++---- lib/libnet/ipv6.h | 8 ++++---- lib/libnet/ndp.c | 2 +- lib/libnet/netload.c | 4 ++-- lib/libnet/tftp.c | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/libnet/dhcp.c b/lib/libnet/dhcp.c index 85cd7c0..84d44ba 100644 --- a/lib/libnet/dhcp.c +++ b/lib/libnet/dhcp.c @@ -111,7 +111,7 @@ static uint8_t dhcp_magic[] = {0x63, 0x82, 0x53, 0x63}; * or to retrieve options from DHCP-msg during receiving. *

* If flag[i] == TRUE then field for i-th option retains valid value and - * information from this field may retrived (in case of receiving) or will + * information from this field may retrieved (in case of receiving) or will * be transmitted (in case of transmitting). * */ @@ -233,7 +233,7 @@ int32_t dhcpv4(char *ret_buffer, filename_ip_t *fn_ip) } } - // Store configuration info into filename_ip strucutre + // Store configuration info into filename_ip structure fn_ip -> own_ip = dhcp_own_ip; fn_ip -> server_ip = dhcp_tftp_ip; strcpy(fn_ip->filename, dhcp_filename); @@ -507,7 +507,7 @@ static int32_t dhcp_decode_options(uint8_t opt_field[], uint32_t opt_len, * DHCP: Appends information from source "options" into dest "options". * This function is used to support "file/sname" overloading. * - * @param dst_options destanation "options" field + * @param dst_options destination "options" field * @param dst_len size of dst_options (modified by this function) * @param src_options source "options" field * @param src_len size of src_options diff --git a/lib/libnet/dns.c b/lib/libnet/dns.c index a7313a9..c759c32 100644 --- a/lib/libnet/dns.c +++ b/lib/libnet/dns.c @@ -95,7 +95,7 @@ static int8_t dns_domain_cname[0x100]; /**< Canonical domain name */ /** * DNS: Initialize the environment for DNS client. - * To perfrom DNS-queries use the function dns_get_ip. + * To perform DNS-queries use the function dns_get_ip. * * @param device_socket a socket number used to send and receive packets * @param server_ip DNS-server IPv4 address (e.g. 127.0.0.1) @@ -129,7 +129,7 @@ dns_init(uint32_t _dns_server_ip, uint8_t _dns_server_ipv6[16], uint8_t ip_versi * @param url the URL to be resolved * @param domain_ip In case of SUCCESS stores extracted IP. * In case of FAULT stores zeros (0.0.0.0). - * @return TRUE - IP successfuly retrieved; + * @return TRUE - IP successfully retrieved; * FALSE - error condition occurs. */ int8_t diff --git a/lib/libnet/icmpv6.c b/lib/libnet/icmpv6.c index 34d7c65..bb36cc1 100644 --- a/lib/libnet/icmpv6.c +++ b/lib/libnet/icmpv6.c @@ -85,7 +85,7 @@ handle_prefixoption (uint8_t *option) prefix_option = (struct option_prefix *) option; memcpy( &(prefix.addr), &(prefix_option->prefix.addr), IPV6_ADDR_LENGTH); - /* Link-local adresses in RAs are nonsense */ + /* Link-local addresses in RAs are nonsense */ if (ip6_is_linklocal(&prefix)) return; @@ -97,7 +97,7 @@ handle_prefixoption (uint8_t *option) if (!new_address) return; - /* Process only prefixes we don't already have an adress from */ + /* Process only prefixes we don't already have an address from */ if (!unknown_prefix (&new_address->addr)) { return; } @@ -256,7 +256,7 @@ send_neighbour_solicitation (int fd, ip6_addr_t *dest_ip6) * @param fd socket fd * @param ip6_packet pointer to an IPv6 packet * @param icmp6hdr pointer to the icmp6 header in ip6_packet - * @param na_flags Neighbour advertisment flags + * @param na_flags Neighbour advertisement flags */ static void send_neighbour_advertisement (int fd, struct neighbor *target) diff --git a/lib/libnet/ipv4.c b/lib/libnet/ipv4.c index 3a1a789..0f633e0 100644 --- a/lib/libnet/ipv4.c +++ b/lib/libnet/ipv4.c @@ -25,7 +25,7 @@ #define ARP_REQUEST 1 #define ARP_REPLY 2 -/* ARP talbe size (+1) */ +/* ARP table size (+1) */ #define ARP_ENTRIES 10 /* ICMP Message types */ @@ -373,7 +373,7 @@ int8_t handle_ipv4(int fd, uint8_t * ip_packet, uint32_t packetsize) return 0; } - // packet is completly reassambled now! + // packet is completely reassambled now! // recalculate ip_len and set iph and ip_packet to the iph_first->ip_len = iph->ip_len + ((iph->ip_off) & 0x1FFF) * 8; @@ -504,7 +504,7 @@ int send_ipv4(int fd, void* buffer, int len) arp_entry = &arp_table[arp_producer]; arp_producer = (arp_producer+1)%ARP_ENTRIES; - // if ARP table is full then we must drop the oldes entry. + // if ARP table is full then we must drop the oldest entry. if(arp_consumer == arp_producer) arp_consumer = (arp_consumer+1)%ARP_ENTRIES; diff --git a/lib/libnet/ipv6.c b/lib/libnet/ipv6.c index 6420004..dd8c4ca 100644 --- a/lib/libnet/ipv6.c +++ b/lib/libnet/ipv6.c @@ -289,7 +289,7 @@ void *ip6_prefix2addr(ip6_addr_t prefix) } /** - * NET: add new IPv6 adress to list + * NET: add new IPv6 address to list * * @param ip6_addr *new_address * @return 0 - passed pointer = NULL; @@ -309,7 +309,7 @@ int8_t ip6addr_add(struct ip6addr_list_entry *new_address) /* If address is a unicast address, we also have to process packets * for its solicited-node multicast address. - * See RFC 2373 - IP Version 6 Adressing Architecture */ + * See RFC 2373 - IP Version 6 Addressing Architecture */ if (! ip6_is_multicast(&(new_address->addr))) { solicited_node = malloc(sizeof(struct ip6addr_list_entry)); if (! solicited_node) @@ -371,7 +371,7 @@ static void ipv6_init(int fd) } /** - * NET: compare IPv6 adresses + * NET: compare IPv6 addresses * * @param ip6_addr ip_1 * @param ip6_addr ip_2 @@ -470,7 +470,7 @@ static unsigned short ip6_checksum(struct ip6hdr *ip6h, unsigned char *packet, * @param fd socket fd * @param ip6_packet Pointer to IPv6 header in packet * @param packetsize Size of IPv6 packet - * @return -1 : Some error occured + * @return -1 : Some error occurred * 0 : packet stored (NDP request sent - packet will be sent if * NDP response is received) * >0 : packet sent (number of transmitted bytes is returned) diff --git a/lib/libnet/ipv6.h b/lib/libnet/ipv6.h index c6b681d..3a00ee5 100644 --- a/lib/libnet/ipv6.h +++ b/lib/libnet/ipv6.h @@ -24,7 +24,7 @@ #define IPV6_DEBUG_PRINT(format, ...) #endif -#define IPV6_ADDR_LENGTH 16 /* Size of IPv6 adress in bytes */ +#define IPV6_ADDR_LENGTH 16 /* Size of IPv6 address in bytes */ #define IPV6_LL_PREFIX 0xFE80000000000000ULL #define IPV6_LL_PREFIX_MASK 0xFFC0000000000000ULL #define IPV6_SOLIC_NODE_PREFIX 0xFF02000000000000ULL @@ -52,7 +52,7 @@ typedef struct { /** \struct prefix_info * - * List of Prefixes we have adresses from + * List of Prefixes we have addresses from * Used for internal purposes, information derived from prefix option * in Router Advertisements * See RFC 4861 section 4.6.2 @@ -121,7 +121,7 @@ struct parseip6_state { }; /** \struct ip6_config - * Stores flags wheter we use Stateless- or Stateful Autoconfiguration or DHCPv6 + * Stores flags whether we use Stateless- or Stateful Autoconfiguration or DHCPv6 */ struct ip6_config { uint8_t managed_mode:1, @@ -160,7 +160,7 @@ struct prefix_info * ip6_create_prefix_info(void); * and add it to our IPv6 address list */ void * ip6_prefix2addr (ip6_addr_t prefix); -/* Compare IPv6 adresses */ +/* Compare IPv6 addresses */ int8_t ip6_cmp(ip6_addr_t ip_1, ip6_addr_t ip_2); /* Check if it is a link-local address */ diff --git a/lib/libnet/ndp.c b/lib/libnet/ndp.c index 1c420d6..47b34b5 100644 --- a/lib/libnet/ndp.c +++ b/lib/libnet/ndp.c @@ -86,7 +86,7 @@ find_router(ip6_addr_t ip) /** * Find a router for a given host address - * @param ip - IPv6 address with the prefered prefix + * @param ip - IPv6 address with the preferred prefix * @return pointer to router, or NULL if none is available */ struct router *ipv6_get_default_router(ip6_addr_t ip) diff --git a/lib/libnet/netload.c b/lib/libnet/netload.c index ae169f3..7276b82 100644 --- a/lib/libnet/netload.c +++ b/lib/libnet/netload.c @@ -54,7 +54,7 @@ typedef struct { } obp_tftp_args_t; /** - * Print error with preceeding error code + * Print error with preceding error code */ static void netload_error(int errcode, const char *format, ...) { @@ -556,7 +556,7 @@ int netload(char *buffer, int len, char *args_fs, unsigned alen) /*********************************************************** * - * Initialize network stuff and retrieve boot informations + * Initialize network stuff and retrieve boot information * ***********************************************************/ diff --git a/lib/libnet/tftp.c b/lib/libnet/tftp.c index 9a5817a..c6f71df 100644 --- a/lib/libnet/tftp.c +++ b/lib/libnet/tftp.c @@ -155,7 +155,7 @@ static void send_rrq(int fd) } /** - * send_ack - Sends a acknowlege package. + * send_ack - Sends a acknowledge package. * * @blckno: block number * @dport: UDP destination port @@ -657,7 +657,7 @@ int parse_tftp_args(char buffer[], char *server_ip, char filename[], int fd, /* look for dns server name */ tmp1 = strchr(raw, '.'); if (tmp1 == NULL) { - printf("\n missing . seperator in %s\n", raw); + printf("\n missing . separator in %s\n", raw); free(raw); return -1; } From patchwork Wed Feb 22 15:40:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1746305 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PML3X6XCYz23yZ for ; Thu, 23 Feb 2023 02:41:12 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PML3X246Zz3c8n for ; Thu, 23 Feb 2023 02:41:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim-atps=neutral X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=thuth@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NtRcyh9z; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PML3T1KmKz3bgx for ; Thu, 23 Feb 2023 02:41:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080465; 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=JebQGMFVyJ1HkdTzx42dJHgqNm0YCBkbtkmj6+izH1o=; b=NtRcyh9zp3fVPPSGh9D7jU0IzOFmvjkrzaeNVG0yhjRIZytjAYPdFaBPcmGYV8099aEm+Y vnndm1JOBnMhKhyWVhkEH+zV63V8kdhgoikJXu/NcHDHnnZJ4zCxAXgkH2apGKxZtnu2tM +u+jgnW294EhmfOcIlOseK11429Drxw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080465; 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=JebQGMFVyJ1HkdTzx42dJHgqNm0YCBkbtkmj6+izH1o=; b=NtRcyh9zp3fVPPSGh9D7jU0IzOFmvjkrzaeNVG0yhjRIZytjAYPdFaBPcmGYV8099aEm+Y vnndm1JOBnMhKhyWVhkEH+zV63V8kdhgoikJXu/NcHDHnnZJ4zCxAXgkH2apGKxZtnu2tM +u+jgnW294EhmfOcIlOseK11429Drxw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-439-qQ4ypgdTPV-eRVmwGaFMuQ-1; Wed, 22 Feb 2023 10:41:03 -0500 X-MC-Unique: qQ4ypgdTPV-eRVmwGaFMuQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F221C19705A8; Wed, 22 Feb 2023 15:41:02 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 54F7440C1423; Wed, 22 Feb 2023 15:41:02 +0000 (UTC) From: Thomas Huth To: slof@lists.ozlabs.org Date: Wed, 22 Feb 2023 16:40:56 +0100 Message-Id: <20230222154057.904578-4-thuth@redhat.com> In-Reply-To: <20230222154057.904578-1-thuth@redhat.com> References: <20230222154057.904578-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [SLOF] [PATCH 3/4] Fix typos in the remaining lib folders X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Found with the "codespell" utility. Signed-off-by: Thomas Huth --- lib/libbcm/bcm57xx.c | 4 ++-- lib/libbcm/bcm57xx.h | 4 ++-- lib/libc/stdio/vsnprintf.c | 2 +- lib/libe1k/e1k.c | 6 +++--- lib/libtpm/tcgbios.c | 4 ++-- lib/libusb/usb-ohci.c | 2 +- lib/libusb/usb-xhci.c | 2 +- lib/libvirtio/virtio-blk.c | 6 +++--- lib/libvirtio/virtio-net.c | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/libbcm/bcm57xx.c b/lib/libbcm/bcm57xx.c index 2ecb517..f6765ce 100644 --- a/lib/libbcm/bcm57xx.c +++ b/lib/libbcm/bcm57xx.c @@ -16,7 +16,7 @@ * reference: * Broadcom 57xx * Host Programmer Interface Specification for the - * NetXtreme Family of Highly-Integrated Media Access Controlers + * NetXtreme Family of Highly-Integrated Media Access Controllers */ #include #include @@ -3255,7 +3255,7 @@ bcm_setmac(char mac_addr1[6], char mac_addr2[6]) manu[(0xCC-0x74)/4] = val3; manu[(0xD0-0x74)/4] = val4; - /* Calculate the new manufacturing datas CRC */ + /* Calculate the new manufacturing data CRC */ crc = util_gen_crc(((char *)manu), MANUFACTURING_INFO_SIZE - 4, 0xFFFFFFFF); diff --git a/lib/libbcm/bcm57xx.h b/lib/libbcm/bcm57xx.h index efaba60..3566f60 100644 --- a/lib/libbcm/bcm57xx.h +++ b/lib/libbcm/bcm57xx.h @@ -41,11 +41,11 @@ #define PCI_BAR2_R ( (uint16_t) 0x0014 ) // PCI bar1 register #define PCI_SUBID_R ( (uint16_t) 0x002e ) -// PCI-X Comand register +// PCI-X Command register #define PCI_X_COM_R ( (uint16_t) 0x0042 ) // Message Data Register #define MSG_DATA_R ( (uint16_t) 0x0064 ) -// PCI misc host contrl register +// PCI misc host control register #define PCI_MISC_HCTRL_R ( (uint16_t) 0x0068 ) // DMA Read/Write Control register #define DMA_RW_CTRL_R ( (uint16_t) 0x006c ) diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c index 12f3043..bb3b3aa 100644 --- a/lib/libc/stdio/vsnprintf.c +++ b/lib/libc/stdio/vsnprintf.c @@ -240,7 +240,7 @@ print_format(char **buffer, size_t bufsize, const char *format, void *var) /* - * The vsnprintf function prints a formated strings into a buffer. + * The vsnprintf function prints a formatted strings into a buffer. * BUG: buffer size checking does not fully work yet */ int diff --git a/lib/libe1k/e1k.c b/lib/libe1k/e1k.c index 3bbc75f..514e7c2 100644 --- a/lib/libe1k/e1k.c +++ b/lib/libe1k/e1k.c @@ -369,7 +369,7 @@ e1k_init_receiver(void) e1k_wr32(RCTL, 0); /* - * clear receive desciptors and setup buffer pointers + * clear receive descriptors and setup buffer pointers */ for (i = 0; i < E1K_NUM_RX_DESC; i++) { memset((uint8_t *) &m_e1k.m_rx_ring_pst[i], 0, @@ -421,7 +421,7 @@ e1k_init_transmitter(void) uint64_t addr; /* - * clear transmit desciptors and setup buffer pointers + * clear transmit descriptors and setup buffer pointers */ for (i = 0; i < E1K_NUM_TX_DESC; i++) { memset((uint8_t *) &m_e1k.m_tx_ring_pst[i], 0, @@ -451,7 +451,7 @@ e1k_init_transmitter(void) */ e1k_wr32(TCTL, BIT32(1) | // enable transmitter BIT32(3) | // pad short packets - ((uint32_t) 0x0f << 4) | // collision threshhold + ((uint32_t) 0x0f << 4) | // collision threshold ((uint32_t) 0x40 << 12)); // collision distance } diff --git a/lib/libtpm/tcgbios.c b/lib/libtpm/tcgbios.c index 3b2e76d..aefa865 100644 --- a/lib/libtpm/tcgbios.c +++ b/lib/libtpm/tcgbios.c @@ -332,7 +332,7 @@ static int tpm20_build_digest(struct tpm_log_entry *le, } if (sel != end) { - dprintf("Malformed pcr selection structure fron TPM\n"); + dprintf("Malformed pcr selection structure from TPM\n"); return -1; } @@ -739,7 +739,7 @@ static int tpm20_write_EfiSpecIdEventStruct(void) } if (sel != end) { - dprintf("Malformed pcr selection structure fron TPM\n"); + dprintf("Malformed pcr selection structure from TPM\n"); return -1; } diff --git a/lib/libusb/usb-ohci.c b/lib/libusb/usb-ohci.c index 3f2ecf3..8c9ab01 100644 --- a/lib/libusb/usb-ohci.c +++ b/lib/libusb/usb-ohci.c @@ -645,7 +645,7 @@ static int ohci_transfer_bulk(struct usb_pipe *pipe, void *td_ptr, __func__, pipe, data_phys, datalen, dir, td, td_phys); if (!tds) { - printf("%s: tds NULL recieved\n", __func__); + printf("%s: tds NULL received\n", __func__); ret = false; goto end; } diff --git a/lib/libusb/usb-xhci.c b/lib/libusb/usb-xhci.c index cdf8042..6708bc0 100644 --- a/lib/libusb/usb-xhci.c +++ b/lib/libusb/usb-xhci.c @@ -714,7 +714,7 @@ static int xhci_port_scan(struct xhci_hcd *xhcd, cap = xhcd->cap_regs; port_cnt = num_ports = read_reg32(&cap->hcsparams1) >> 24; - /* Read the xHCI extented capability to find usb3 ports and offset*/ + /* Read the xHCI extended capability to find usb3 ports and offset*/ xecp_off = XHCI_HCCPARAMS_XECP(read_reg32(&cap->hccparams)); base = (uint32_t *)cap; while (xecp_off > 0) { diff --git a/lib/libvirtio/virtio-blk.c b/lib/libvirtio/virtio-blk.c index 0363038..1f5077d 100644 --- a/lib/libvirtio/virtio-blk.c +++ b/lib/libvirtio/virtio-blk.c @@ -111,10 +111,10 @@ static void fill_blk_hdr(struct virtio_blk_req *blkhdr, bool is_modern, * Read / write blocks * @param reg pointer to "reg" property * @param buf pointer to destination buffer - * @param blocknum block number of the first block that should be transfered - * @param cnt amount of blocks that should be transfered + * @param blocknum block number of the first block that should be transferred + * @param cnt amount of blocks that should be transferred * @param type VIRTIO_BLK_T_OUT for write, VIRTIO_BLK_T_IN for read transfers - * @return number of blocks that have been transfered successfully + * @return number of blocks that have been transferred successfully */ int virtioblk_transfer(struct virtio_device *dev, char *buf, uint64_t blocknum, diff --git a/lib/libvirtio/virtio-net.c b/lib/libvirtio/virtio-net.c index 5a0d190..6609024 100644 --- a/lib/libvirtio/virtio-net.c +++ b/lib/libvirtio/virtio-net.c @@ -66,7 +66,7 @@ static uint16_t last_rx_idx; /* Last index in RX "used" ring */ /** * Module init for virtio via PCI. - * Checks whether we're reponsible for the given device and set up + * Checks whether we're responsible for the given device and set up * the virtqueue configuration. */ static int virtionet_init_pci(struct virtio_net *vnet, struct virtio_device *dev) From patchwork Wed Feb 22 15:40:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1746309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=erXAnyrF; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OB/szulS; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PML3l0v4Pz23yZ for ; Thu, 23 Feb 2023 02:41:23 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PML3k6v6lz3brJ for ; Thu, 23 Feb 2023 02:41:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=erXAnyrF; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OB/szulS; dkim-atps=neutral X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=thuth@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=erXAnyrF; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OB/szulS; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PML3V23Xmz3bfs for ; Thu, 23 Feb 2023 02:41:09 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080467; 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=62rg5pUmd3piWvomzZtHYgBEtgs1rqPrlK5oz9zByqY=; b=erXAnyrF3j3Ws1pyDhnBFsUxVdlT6qBX0u1vJZxTmGtkLmELQzqxtcECME38Beyo7qJTwB PIkVqnQbEGZaYi3O1pzQBEGn1Z5B4rqxLfSt6awGBnY6TKewGqBZUaLwUQsEXpbvq1D2yA AsPEfUQyLC39JHxQTxfUVs2e4EB/oos= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677080468; 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=62rg5pUmd3piWvomzZtHYgBEtgs1rqPrlK5oz9zByqY=; b=OB/szulSqYkAgISh5y8lnD6cqyOZX3TTUfdOAh/1wYdtHA6q71nMqhyd7wB8/wgobalQwb Cv2ssfdx08Z+fbCxBXhbaCjXG3XMBJUFBh7a1q3GkUh2DeYQHcqND10jlGAUiSsv2hzne2 pqC+3Ci6BFBQRv6SOJJ6YlII3ts+2+c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-548-Yrt_GocxPm2CwmV5dHmLtg-1; Wed, 22 Feb 2023 10:41:04 -0500 X-MC-Unique: Yrt_GocxPm2CwmV5dHmLtg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CCA89857A81; Wed, 22 Feb 2023 15:41:03 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3BB5F4015308; Wed, 22 Feb 2023 15:41:03 +0000 (UTC) From: Thomas Huth To: slof@lists.ozlabs.org Date: Wed, 22 Feb 2023 16:40:57 +0100 Message-Id: <20230222154057.904578-5-thuth@redhat.com> In-Reply-To: <20230222154057.904578-1-thuth@redhat.com> References: <20230222154057.904578-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [SLOF] [PATCH 4/4] Fix typos in the slof folder X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Found with the "codespell" utility. I kept "busses" which codespell also complains about since it seems to be an old but still valid plural of the word "bus". Signed-off-by: Thomas Huth Reviewed-by: Segher Boessenkool --- slof/entry.S | 2 +- slof/fs/available.fs | 2 +- slof/fs/base.fs | 4 ++-- slof/fs/claim.fs | 2 +- slof/fs/fcode/1275.fs | 2 +- slof/fs/fcode/locals.fs | 2 +- slof/fs/generic-disk.fs | 2 +- slof/fs/node.fs | 2 +- slof/fs/packages/iso-9660.fs | 4 ++-- slof/fs/pci-bridge.fs | 2 +- slof/fs/pci-device.fs | 2 +- slof/fs/pci-helper.fs | 6 +++--- slof/fs/pci-properties.fs | 4 ++-- slof/fs/pci-scan.fs | 2 +- slof/fs/root.fs | 2 +- slof/fs/scsi-host-helpers.fs | 2 +- slof/fs/term-io.fs | 2 +- slof/prim.code | 2 +- 18 files changed, 23 insertions(+), 23 deletions(-) diff --git a/slof/entry.S b/slof/entry.S index 5372de3..77fae8f 100644 --- a/slof/entry.S +++ b/slof/entry.S @@ -30,7 +30,7 @@ eregs: * defined in $(TARG).c * the_exception_frame can be accessed from paflof through * the word eregs - * in the case an excpetion is handled paflof will read + * in the case an exception is handled paflof will read * from eregs the values of all registers and print them * out in the exception handler */ .quad the_exception_frame diff --git a/slof/fs/available.fs b/slof/fs/available.fs index 5eb8fa9..9d2d934 100644 --- a/slof/fs/available.fs +++ b/slof/fs/available.fs @@ -16,7 +16,7 @@ VARIABLE chosen-memory-ih 0 chosen-memory-ih ! \ Maintain "available" property. \ Sun has a single memory node with "available" property \ and separate memory controller nodes. -\ We corespond memory nodes with their respective memory controllers +\ We correspond memory nodes with their respective memory controllers \ and use /chosen/memory as default memory node to hold the "available" map \ NOTE -> /chosen/memory is expected 2B initialized before using claim/release \ + diff --git a/slof/fs/base.fs b/slof/fs/base.fs index e2104fb..d7f4e37 100644 --- a/slof/fs/base.fs +++ b/slof/fs/base.fs @@ -553,11 +553,11 @@ defer cursor-off ( -- ) : reset-all reboot ; \ load-base is an env. variable now, but it can -\ be overriden temporarily provided users use +\ be overridden temporarily provided users use \ get-load-base rather than load-base directly \ \ default-load-base is set here and can be -\ overriden by the board code. It will be used +\ overridden by the board code. It will be used \ to set the default value of the envvar "load-base" \ when booting without a valid nvram diff --git a/slof/fs/claim.fs b/slof/fs/claim.fs index d012d3d..75edf3e 100644 --- a/slof/fs/claim.fs +++ b/slof/fs/claim.fs @@ -178,7 +178,7 @@ VARIABLE mem-pre-released 0 mem-pre-released ! \ position \ + \ insert-available should also check adjacent elements and merge if new -\ region is contiguos w. others +\ region is contiguous with others \ + : (insert-available) ( available-ptr -- available-ptr ) dup \ current element diff --git a/slof/fs/fcode/1275.fs b/slof/fs/fcode/1275.fs index c2a67bc..84e5f91 100644 --- a/slof/fs/fcode/1275.fs +++ b/slof/fs/fcode/1275.fs @@ -175,7 +175,7 @@ new-token ; -\ decide wether or not to give a new token an own name in the dictionary +\ decide whether or not to give a new token an own name in the dictionary : named-token fcode-debug? IF external-token diff --git a/slof/fs/fcode/locals.fs b/slof/fs/fcode/locals.fs index 5381df0..34400e5 100644 --- a/slof/fs/fcode/locals.fs +++ b/slof/fs/fcode/locals.fs @@ -98,7 +98,7 @@ localsstackbuf VALUE localsstack : fc-pop-locals ( -- ) \ ." popping locals" cr localsstack 8 cells - TO localsstack - localsstack localsstackbuf - 0 < ABORT" Locals stack undeflow!" + localsstack localsstackbuf - 0 < ABORT" Locals stack underflow!" ; diff --git a/slof/fs/generic-disk.fs b/slof/fs/generic-disk.fs index 0543c89..92b7c54 100644 --- a/slof/fs/generic-disk.fs +++ b/slof/fs/generic-disk.fs @@ -38,7 +38,7 @@ new-device set-unit ( str len ) s" 0 pci-alias-" 2swap $cat evaluate s" block" device-type -\ Requiered interface for deblocker +\ Required interface for deblocker s" block-size" $call-parent CONSTANT block-size s" max-transfer" $call-parent CONSTANT max-transfer diff --git a/slof/fs/node.fs b/slof/fs/node.fs index 23238bb..9cee3c0 100644 --- a/slof/fs/node.fs +++ b/slof/fs/node.fs @@ -349,7 +349,7 @@ d# 10 CONSTANT MAX-ALIAS ELSE 2drop list-alias THEN THEN ; \ sub-alias does a single iteration of an alias at the beginning od dev path -\ expression. de-alias will repeat this until all indirect alising is resolved +\ expression. de-alias will repeat this until all indirect aliasing is resolved : sub-alias ( arg-str arg-len -- arg' len' | false ) 2dup 2dup [char] / findchar ?dup IF ELSE 2dup [char] : findchar THEN diff --git a/slof/fs/packages/iso-9660.fs b/slof/fs/packages/iso-9660.fs index 6eda8be..47edb2a 100644 --- a/slof/fs/packages/iso-9660.fs +++ b/slof/fs/packages/iso-9660.fs @@ -109,7 +109,7 @@ INSTANCE VARIABLE index ; -\ This method coverts the iso file name to user readble form +\ This method converts the ISO file name to user readable form : file-name ( str len -- str' len' ) 2dup [char] ; findchar IF @@ -169,7 +169,7 @@ INSTANCE VARIABLE index ; -\ METHOD for searching for a file with in a direcotory +\ METHOD for searching for a file with in a directory : search-file-dir ( str len -- TRUE | FALSE ) dir-addr @ 800 * dir-addr ! ( str len ) diff --git a/slof/fs/pci-bridge.fs b/slof/fs/pci-bridge.fs index e6af7b6..58c5137 100644 --- a/slof/fs/pci-bridge.fs +++ b/slof/fs/pci-bridge.fs @@ -48,7 +48,7 @@ s" dma-function.fs" included \ this device and so for the scanning for the devices behind pci-device-disable -\ Enalbe #PERR and #SERR reporting +\ Enable #PERR and #SERR reporting pci-error-enable \ Print out device information diff --git a/slof/fs/pci-device.fs b/slof/fs/pci-device.fs index 7b17758..6699333 100644 --- a/slof/fs/pci-device.fs +++ b/slof/fs/pci-device.fs @@ -95,7 +95,7 @@ s" dma-function.fs" included \ if Bus Master function is needed it should be enabled/disabled by open/close in the device driver code pci-device-disable -\ Enalbe #PERR and #SERR reporting +\ Enable #PERR and #SERR reporting pci-error-enable \ Print out device information diff --git a/slof/fs/pci-helper.fs b/slof/fs/pci-helper.fs index a4f69f1..5535bf2 100644 --- a/slof/fs/pci-helper.fs +++ b/slof/fs/pci-helper.fs @@ -128,13 +128,13 @@ THEN ; -\ check wether this device is a pci-express device +\ check whether this device is a pci-express device : pci-express? ( addr -- 0|1 ) 10 pci-cap-find 0<> ; -\ check wether this device is a pci-express device +\ check whether this device is a pci-express device : pci-x? ( addr -- 0|1 ) 07 pci-cap-find 0<> ; -\ check wether this device has extended config space +\ check whether this device has extended config space : pci-config-ext? ( addr -- 0|1 ) pci-express? ; diff --git a/slof/fs/pci-properties.fs b/slof/fs/pci-properties.fs index 6f8f013..92da6dc 100644 --- a/slof/fs/pci-properties.fs +++ b/slof/fs/pci-properties.fs @@ -668,7 +668,7 @@ : pci-bridge-generic-setup ( addr -- ) pci-device-slots >r \ save the slot array on return stack dup pci-common-props \ set the common properties before scanning the bus - s" pci" device-type \ the type is allways "pci" + s" pci" device-type \ the type is always "pci" dup func-pci-bridge-probe \ find all device connected to it dup assign-all-bridge-bars \ set up all memory access BARs dup pci-set-irq-line \ set the interrupt pin @@ -679,7 +679,7 @@ DEFER func-pci-device-props -\ used for an gerneric device set up +\ used for an generic device set up \ if a device has no special handling for setup \ the device file (pci-device_VENDOR_DEVICE.fs) can call \ this word to setup the device diff --git a/slof/fs/pci-scan.fs b/slof/fs/pci-scan.fs index a97afa3..aca83c8 100644 --- a/slof/fs/pci-scan.fs +++ b/slof/fs/pci-scan.fs @@ -265,7 +265,7 @@ DEFER func-pci-bridge-probe ; \ check for multifunction and for each function -\ (dependig from header type) call device or bridge setup +\ (depending from header type) call device or bridge setup : pci-setup-device ( addr -- ) dup pci-htype@ \ read HEADER-Type 80 and IF 8 ELSE 1 THEN \ check for multifunction diff --git a/slof/fs/root.fs b/slof/fs/root.fs index 3818790..1d9afca 100644 --- a/slof/fs/root.fs +++ b/slof/fs/root.fs @@ -44,7 +44,7 @@ VARIABLE chosen-cpu-ihandle : chosen-cpu-unit ( -- ret ) chosen-cpu-ihandle @ ihandle>phandle >unit ; -\ Look for an exising root, create one if needed +\ Look for an existing root, create one if needed " /" find-node dup 0= IF drop new-device diff --git a/slof/fs/scsi-host-helpers.fs b/slof/fs/scsi-host-helpers.fs index 579ce37..da7f288 100644 --- a/slof/fs/scsi-host-helpers.fs +++ b/slof/fs/scsi-host-helpers.fs @@ -43,7 +43,7 @@ >r \ stash #retries to rcmd-cmd-len to rcmd-cmd-addr to rcmd-dir to rcmd-buf-len to rcmd-buf-addr 0 \ dummy status & sense - r> \ retreive #retries ( stat #retries ) + r> \ retrieve #retries ( stat #retries ) 0 DO \ drop previous status & sense 0<> IF 2drop THEN diff --git a/slof/fs/term-io.fs b/slof/fs/term-io.fs index 5b94b26..3483ba6 100644 --- a/slof/fs/term-io.fs +++ b/slof/fs/term-io.fs @@ -107,7 +107,7 @@ VARIABLE stdout false ELSE 1 - \ remove 1 from length to ignore null-termination char - \ device_type found, check wether it is serial or keyboard + \ device_type found, check whether it is serial or keyboard 2dup s" serial" str= IF 2drop serial-key? r> drop EXIT THEN \ call serial-key, cleanup return-stack, exit diff --git a/slof/prim.code b/slof/prim.code index b9db151..eb899c7 100644 --- a/slof/prim.code +++ b/slof/prim.code @@ -561,7 +561,7 @@ PRIM(STRING_X3d_CI) } MIRP -// bool dependend pick +// bool dependent pick // ?PICK ( v1 v2 bool -- v1|v2 ) PRIM(_X3f_PICK) type_u b = TOS.u; POP;