From patchwork Tue Jul 11 21:10:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 1806510 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.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=El9fLeRB; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R0tn21L0vz20Ph for ; Wed, 12 Jul 2023 07:10:14 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qJKcc-0001bn-1w; Tue, 11 Jul 2023 21:10:10 +0000 Received: from mail-wm1-f45.google.com ([209.85.128.45]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qJKca-0001bf-Cl for fwts-devel@lists.ubuntu.com; Tue, 11 Jul 2023 21:10:08 +0000 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3fbc244d384so63934385e9.0 for ; Tue, 11 Jul 2023 14:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689109807; x=1691701807; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=K3NtagbZtYh9MGbpNTZFY8YEjf6jZUH82JYChp4oXCU=; b=El9fLeRBi2XxHs0P9Fvs1oCn4Yq9EZR8qXUc242WDc60Yl43ssAjMhy8k8Qu2XT1Bs NxbNsnUydmtttLOYgzF1p03f82AMFNm/bc5zd7+s+t1qHVjXepSJL7uP+h7OWHsdvY8f GeQE8G14TJ5mJ3JtM0+w1WO0V/sJDOyfhwFkucE/3tYKKugJMvkuxXvFzeZ+D/9YuMfk yWTcHhIZ/FgmKi7eRH3RUkyxq5zUnVaLsFgny8xjym2h6ZlJk3OO+esHeGtrYfmxB1Aq WxqiVbPLkB5p4Xw/w8WAQz9o/yHqhjUC14K6t+3HtyUrpvwL9xSg/kdZEYC1znYnhUA2 vTwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689109807; x=1691701807; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K3NtagbZtYh9MGbpNTZFY8YEjf6jZUH82JYChp4oXCU=; b=BVPsljgSC4hubrpsm2bzmOk6lCN2HHAvYnqW9+58fJTClZyexsgtYSrJ0CHtF0Mg5G sTD2B0gyMgY4OQ7OcpU6N9NmkeEHz6NNWZxgBGlfivpoG1gvKfKtYgCbodzOFe38E3J8 GuDMjVlu5napf6eZ0K9ia8CHQHyTXwBuquLDZCwO9gnE7Hp7VGI66vKOpNX4Eep+mleD YrbW5ZbnvCRHmzS4UsjyhWxx9QqI4C7/mSJnmqDMAJ+kz9XBNKv1A0LTHaNA/s/aPbWv x0vkfoKRb7e0y2zYKPXfNZ0wUJSXuy+X04aLYaTxi73dITmNHHZvsZjrDvRRgYkrz/n/ qqnw== X-Gm-Message-State: ABy/qLZRxGO6ZazP9sfwHO7FKxO0EmnGbRbqgZs4tqCsin5puHiXZdaA iEkOsBWAfFnMlT8bgD6a1h7qsC7GzME= X-Google-Smtp-Source: APBJJlFOykzko2EaomyMvKj3hdZ1KG+4U3/YbtFJvAWYiSERNzRTZJJBk4wkI09CwEA4APY6gTTXtw== X-Received: by 2002:a7b:cd0d:0:b0:3fc:1fb:79d3 with SMTP id f13-20020a7bcd0d000000b003fc01fb79d3mr10656817wmj.15.1689109806998; Tue, 11 Jul 2023 14:10:06 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id 16-20020a05600c029000b003fc04d13242sm10889435wmk.0.2023.07.11.14.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 14:10:06 -0700 (PDT) From: Colin Ian King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] src/*: Fix various spelling mistakes in source code Date: Tue, 11 Jul 2023 22:10:05 +0100 Message-Id: <20230711211005.414987-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.128.45; envelope-from=colin.i.king@gmail.com; helo=mail-wm1-f45.google.com X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" There are some spelling mistakes found by codespell in literal strings and comments. Fix these. Signed-off-by: Colin Ian King Acked-by: Ivan Hu --- src/dmi/dmicheck/dmicheck.c | 2 +- src/lib/src/fwts_acpi_object_eval.c | 2 +- src/lib/src/fwts_dump_data.c | 6 +++--- src/lib/src/fwts_mmap.c | 2 +- src/uefi/uefirtvariable/uefirtvariable.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c index 656b323d..f7262b03 100644 --- a/src/dmi/dmicheck/dmicheck.c +++ b/src/dmi/dmicheck/dmicheck.c @@ -1638,7 +1638,7 @@ static void dmicheck_entry(fwts_framework *fw, fwts_dmi_value_range t16_ranges[] = {{0x1, 0xa}, {0xa0, 0xa4}}; dmi_ranges_uint8_check(fw, table, addr, "Location", hdr, 0x4, t16_ranges); dmi_min_max_uint8_check(fw, table, addr, "Use", hdr, 0x5, 0x1, 0x7); - dmi_min_max_uint8_check(fw, table, addr, "Error Corrrection Type", hdr, 0x6, 0x1, 0x7); + dmi_min_max_uint8_check(fw, table, addr, "Error Correction Type", hdr, 0x6, 0x1, 0x7); dmi_min_max_uint32_check(fw, table, addr, "Maximum Capacity", hdr, 0x7, 0, 0x80000000); if (hdr->length < 0x17) break; diff --git a/src/lib/src/fwts_acpi_object_eval.c b/src/lib/src/fwts_acpi_object_eval.c index aaf885e1..ece8fd98 100644 --- a/src/lib/src/fwts_acpi_object_eval.c +++ b/src/lib/src/fwts_acpi_object_eval.c @@ -277,7 +277,7 @@ static const acpi_eval_error errors[] = { { AE_AML_TARGET_TYPE, LOG_LEVEL_HIGH, "AEAMLTargetType", "Target type", "A target operand of an incorrect type was encountered." }, - { AE_AML_PROTOCOL, LOG_LEVEL_HIGH, "AEAMLViolateProtocol", "Violattion protcol", + { AE_AML_PROTOCOL, LOG_LEVEL_HIGH, "AEAMLViolateProtocol", "Violation protocol", "Violation of a fixed ACPI protocol." }, { AE_AML_BUFFER_LENGTH, LOG_LEVEL_HIGH, "AEAMLBadBufLength", "Bad buffer length", diff --git a/src/lib/src/fwts_dump_data.c b/src/lib/src/fwts_dump_data.c index d03a47d3..3cce1005 100644 --- a/src/lib/src/fwts_dump_data.c +++ b/src/lib/src/fwts_dump_data.c @@ -31,7 +31,7 @@ void fwts_dump_raw_data( char *buffer, /* buffer to contained formatted dump */ const size_t len, /* Length of buffer */ - const uint8_t *data, /* Octects to dump */ + const uint8_t *data, /* Octets to dump */ const int addr, /* Original buffer data address */ const size_t nbytes) /* Number of bytes to dump, max 16 */ { @@ -71,7 +71,7 @@ void fwts_dump_raw_data( void fwts_dump_raw_data_prefix( char *buffer, /* buffer to contained formatted dump */ const size_t len, /* Length of buffer */ - const uint8_t *data, /* Octects to dump */ + const uint8_t *data, /* Octets to dump */ const char *prefix, /* Prefix string or for alignment */ const size_t nbytes) /* Number of bytes to dump, max 16 */ { @@ -95,7 +95,7 @@ void fwts_dump_raw_data_prefix( */ void fwts_hexdump_data_prefix_all( fwts_framework *fw, - const uint8_t *data, /* Octects to dump */ + const uint8_t *data, /* Octets to dump */ const char *prefix, /* Prefix string or for alignment for each line */ const size_t nbytes) /* Number of bytes to dump for all data */ { diff --git a/src/lib/src/fwts_mmap.c b/src/lib/src/fwts_mmap.c index b9cd88f3..1efaf304 100644 --- a/src/lib/src/fwts_mmap.c +++ b/src/lib/src/fwts_mmap.c @@ -74,7 +74,7 @@ void *fwts_mmap(const off_t start, const size_t size) /* * fwts_munmap() - * Unmap memory mapped wuth fwts_mmap. Needs the mmap'd address and size. + * Unmap memory mapped with fwts_mmap. Needs the mmap'd address and size. */ int fwts_munmap(void *mem, const size_t size) { diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c index 41eb1e23..5ca64d8f 100644 --- a/src/uefi/uefirtvariable/uefirtvariable.c +++ b/src/uefi/uefirtvariable/uefirtvariable.c @@ -2018,7 +2018,7 @@ static void getvariable_test_invalid( } fwts_failed(fw, LOG_LEVEL_HIGH, "UEFIRuntimeGetVariableInvalid", - "GetVariable wuth %s failed to get an error return status, " + "GetVariable with %s failed to get an error return status, " "expected EFI_INVALID_PARAMETER.", test); return;