Skip to content

Commit

Permalink
rasdaemon: fix some typos and correct spelling
Browse files Browse the repository at this point in the history
With the help of checkpatch.pl --codespell, fix some typos.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Jul 17, 2024
1 parent 06c5194 commit 126561e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mce-amd-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const char * const k8bank[] = {
"bus unit",
"load/store unit",
"northbridge",
"fixed-issue reoder"
"fixed-issue reorder"
};

static const char * const k8threshold[] = {
Expand Down
2 changes: 1 addition & 1 deletion mce-amd-smca.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*********************** Higher 32-bits *****************************
* 63: VALIDERROR, 62: OVERFLOW, 61: UC, 60: Err ENABLE,
* 59: Misc Valid, 58: Addr Valid, 57: PCC, 56: ErrCoreID Valid,
* 55: TCC, 54: RES, 53: Syndrom Valid, 52: Transparanet,
* 55: TCC, 54: RES, 53: Syndrome Valid, 52: Transparent,
* 51: RES, 50: RES, 49: RES, 48: RES,
* 47: RES, 46: CECC, 45: UECC, 44: Deferred,
* 43: Poison, 42: RES, 41: RES, 40: RES,
Expand Down
2 changes: 1 addition & 1 deletion mce-intel-sb.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void snb_decode_model(struct ras_events *ras, struct mce_event *e)
* banks. The mode is off by default, but can be enabled by setting the
* "MemError Log Enable" * bit in MSR_ERROR_CONTROL (MSR 0x17f).
* The documentation in the August 2012 edition of Intel's Software developer
* manual has some minor errors because the worng version of table 16-16
* manual has some minor errors because the wrong version of table 16-16
* "Intel IMC MC Error Codes for IA32_MCi_MISC (i= 8, 11)" was included.
* Corrections are:
* Bit 62 is the "VALID" bit for the "first-device" bits in MISC and STATUS
Expand Down
2 changes: 1 addition & 1 deletion queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void free_queue(struct link_queue *queue)
free(queue);
}

/* It should be guranteed that the param is not NULL */
/* It should be guaranteed that the param is not NULL */
void push(struct link_queue *queue, struct queue_node *node)
{
/* there is no element in the queue */
Expand Down
2 changes: 1 addition & 1 deletion ras-aer-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ int ras_aer_event_handler(struct trace_seq *s,
/*
* Get PCIe AER error source seg/bus/dev/fn and save it into
* BMC OEM SEL, ipmitool raw 0x0a 0x44 is IPMI command-Add SEL
* entry, please refer IPMI specificaiton chapter 31.6. 0xcd3a
* entry, please refer IPMI specification chapter 31.6. 0xcd3a
* is manufactuer ID(ampere),byte 12 is sensor num(CE is 0xBF,
* UE is 0xCA), byte 13~14 is segment number, byte 15 is bus
* number, byte 16[7:3] is device number, byte 16[2:0] is
Expand Down
2 changes: 1 addition & 1 deletion ras-arm-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int count_errors(struct ras_arm_event *ev, int sev)
num += error_count;
err_info += 1;
}
log(TERM, LOG_INFO, "%d error in cpu core catched\n", num);
log(TERM, LOG_INFO, "%d error in cpu core caught\n", num);
return num;
}

Expand Down
6 changes: 3 additions & 3 deletions ras-cpu-isolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ static int do_ce_handler(unsigned int cpu)
struct link_queue *queue = cpu_infos[cpu].ce_queue;
unsigned int tmp;
/*
* Since we just count all error numbers in setted cycle, we store the time
* and error numbers from current event to the queue, then everytime we
* Since we just count all error numbers in set cycle, we store the time
* and error numbers from current event to the queue, then every time we
* calculate the period from beginning time to ending time, if the period
* exceeds setted cycle, we pop the beginning time and error until the period
* exceeds set cycle, we pop the beginning time and error until the period
* from new beginning time to ending time is less than cycle.
*/
while (queue->head && queue->tail && queue->tail->time - queue->head->time > cycle.value) {
Expand Down
2 changes: 1 addition & 1 deletion ras-page-isolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static void page_record(struct page_record *pr, unsigned int count, time_t time)
if (period >= cycle.val) {
/**
* Since we don't refresh automatically, it is possible that the period
* between two occurences will be longer than the pre-configured refresh cycle.
* between two occurrences will be longer than the pre-configured refresh cycle.
* In this case, we tolerate the frequency of the whole period up to
* the pre-configured threshold.
*/
Expand Down
2 changes: 1 addition & 1 deletion rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Red Black Trees
* (C) 1999 Andrea Arcangeli <[email protected]>
* (C) 2002 David Woodhouse <[email protected]>
* Taken from the Linux 2.6.30 source with some minor modificatons.
* Taken from the Linux 2.6.30 source with some minor modifications.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 126561e

Please sign in to comment.