efi_selftest: fix typos

fix typos
correct the header comment of efi_selftest_variables.c

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt 2018-09-27 20:44:40 +02:00 committed by Alexander Graf
parent 9b47f13bdf
commit d8b2216c87
11 changed files with 20 additions and 22 deletions

View file

@ -18,7 +18,7 @@ static efi_guid_t table_guid =
0x17, 0x2e, 0x51, 0x6b, 0x49, 0x75); 0x17, 0x2e, 0x51, 0x6b, 0x49, 0x75);
/* /*
* Notification function, increments the notfication count if parameter * Notification function, increments the notification count if parameter
* context is provided. * context is provided.
* *
* @event notified event * @event notified event
@ -33,23 +33,23 @@ static void EFIAPI notify(struct efi_event *event, void *context)
} }
/* /*
* Check crc32 of a table. * Check CRC32 of a table.
*/ */
static int check_table(const void *table) static int check_table(const void *table)
{ {
efi_status_t ret; efi_status_t ret;
u32 crc32, res; u32 crc32, res;
/* Casting from const to not const */ /* Casting from constant to not constant */
struct efi_table_hdr *hdr = (struct efi_table_hdr *)table; struct efi_table_hdr *hdr = (struct efi_table_hdr *)table;
crc32 = hdr->crc32; crc32 = hdr->crc32;
/* /*
* Setting the crc32 of the 'const' table to zero is easier than * Setting the CRC32 of the 'const' table to zero is easier than
* copying * copying
*/ */
hdr->crc32 = 0; hdr->crc32 = 0;
ret = boottime->calculate_crc32(table, hdr->headersize, &res); ret = boottime->calculate_crc32(table, hdr->headersize, &res);
/* Reset table crc32 so it stays constant */ /* Reset table CRC32 so it stays constant */
hdr->crc32 = crc32; hdr->crc32 = crc32;
if (ret != EFI_ST_SUCCESS) { if (ret != EFI_ST_SUCCESS) {
efi_st_error("CalculateCrc32 failed\n"); efi_st_error("CalculateCrc32 failed\n");
@ -203,7 +203,7 @@ static int execute(void)
return EFI_ST_FAILURE; return EFI_ST_FAILURE;
} }
if (tabcnt > 1) { if (tabcnt > 1) {
efi_st_error("Duplicate table guid\n"); efi_st_error("Duplicate table GUID\n");
return EFI_ST_FAILURE; return EFI_ST_FAILURE;
} }
if (table != &tables[1]) { if (table != &tables[1]) {

View file

@ -33,7 +33,7 @@ static efi_handle_t handle_driver;
* Count child controllers * Count child controllers
* *
* @handle handle on which child controllers are installed * @handle handle on which child controllers are installed
* @protocol protocol for which the child controlles where installed * @protocol protocol for which the child controllers were installed
* @count number of child controllers * @count number of child controllers
* @return status code * @return status code
*/ */

View file

@ -5,7 +5,7 @@
* Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de>
* *
* This unit test checks the CalculateCrc32 bootservice and checks the * This unit test checks the CalculateCrc32 bootservice and checks the
* headers of the system table, the boot services tablle, and the runtime * headers of the system table, the boot services table, and the runtime
* services table before and after ExitBootServices(). * services table before and after ExitBootServices().
*/ */
@ -19,7 +19,7 @@ static int check_table(const void *table)
{ {
efi_status_t ret; efi_status_t ret;
u32 crc32, res; u32 crc32, res;
/* Casting from const to not const */ /* Casting from constant to not constant */
struct efi_table_hdr *hdr = (struct efi_table_hdr *)table; struct efi_table_hdr *hdr = (struct efi_table_hdr *)table;
if (!hdr->signature) { if (!hdr->signature) {

View file

@ -19,7 +19,7 @@ static efi_guid_t event_group =
0x0e, 0x5b, 0x45, 0xc0, 0x56, 0x91); 0x0e, 0x5b, 0x45, 0xc0, 0x56, 0x91);
/* /*
* Notification function, increments the notfication count if parameter * Notification function, increments the notification count if parameter
* context is provided. * context is provided.
* *
* @event notified event * @event notified event
@ -114,7 +114,7 @@ static int execute(void)
(unsigned int)i, (unsigned int)j, (unsigned int)i, (unsigned int)j,
(unsigned int)counter[j]); (unsigned int)counter[j]);
efi_st_error( efi_st_error(
"Nofification function not called\n"); "Notification function not called\n");
return EFI_ST_FAILURE; return EFI_ST_FAILURE;
} }
} }

View file

@ -17,7 +17,7 @@ static unsigned int timer_ticks;
static struct efi_boot_services *boottime; static struct efi_boot_services *boottime;
/* /*
* Notification function, increments the notfication count if parameter * Notification function, increments the notification count if parameter
* context is provided. * context is provided.
* *
* @event notified event * @event notified event

View file

@ -4,7 +4,7 @@
* *
* Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de>
* *
* Test the handling of execptions by trying to execute an undefined * Test the handling of exceptions by trying to execute an undefined
* instruction. * instruction.
*/ */
@ -37,7 +37,7 @@ static int execute(void)
{ {
undefined_instruction(); undefined_instruction();
efi_st_error("An undefined instruction exeption was not raised\n"); efi_st_error("An undefined instruction exception was not raised\n");
return EFI_ST_FAILURE; return EFI_ST_FAILURE;
} }

View file

@ -16,7 +16,7 @@
static struct efi_boot_services *boottime; static struct efi_boot_services *boottime;
static const char *fdt; static const char *fdt;
/* This should be sufficent for */ /* This should be sufficient for */
#define BUFFERSIZE 0x100000 #define BUFFERSIZE 0x100000
static efi_guid_t fdt_guid = EFI_FDT_GUID; static efi_guid_t fdt_guid = EFI_FDT_GUID;

View file

@ -5,7 +5,7 @@
* Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de>
* *
* Provides a unit test for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. * Provides a unit test for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL.
* The unicode character and the scan code are printed for text * The Unicode character and the scan code are printed for text
* input. To run the test: * input. To run the test:
* *
* setenv efi_selftest text input * setenv efi_selftest text input

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
/* /*
* efi_selftest_events * efi_selftest_tpl
* *
* Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
* *

View file

@ -4,10 +4,8 @@
* *
* Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de> * Copyright (c) 2018 Heinrich Schuchardt <xypron.glpk@gmx.de>
* *
* This unit test checks the following protocol services: * This unit test checks the runtime services for variables:
* ConnectController, DisconnectController, * GetVariable, GetNextVariableName, SetVariable, QueryVariableInfo.
* InstallProtocol, ReinstallProtocol, UninstallProtocol,
* OpenProtocol, CloseProtcol, OpenProtocolInformation
*/ */
#include <efi_selftest.h> #include <efi_selftest.h>

View file

@ -35,7 +35,7 @@ static struct notify_context notification_context;
static bool watchdog_reset; static bool watchdog_reset;
/* /*
* Notification function, increments the notfication count if parameter * Notification function, increments the notification count if parameter
* context is provided. * context is provided.
* *
* @event notified event * @event notified event