Skip to content

Commit 220a31b

Browse files
Zhen LeiDaniel Thompson
authored andcommitted
kgdb: Fix spelling mistakes
Fix some spelling mistakes in comments: initalization ==> initialization detatch ==> detach represntation ==> representation hexidecimal ==> hexadecimal delimeter ==> delimiter architecure ==> architecture Signed-off-by: Zhen Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Thompson <[email protected]>
1 parent 8124c8a commit 220a31b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

include/linux/kgdb.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ extern int dbg_set_reg(int regno, void *mem, struct pt_regs *regs);
105105
*/
106106

107107
/**
108-
* kgdb_arch_init - Perform any architecture specific initalization.
108+
* kgdb_arch_init - Perform any architecture specific initialization.
109109
*
110-
* This function will handle the initalization of any architecture
110+
* This function will handle the initialization of any architecture
111111
* specific callbacks.
112112
*/
113113
extern int kgdb_arch_init(void);
@@ -229,9 +229,9 @@ extern int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt);
229229
extern int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt);
230230

231231
/**
232-
* kgdb_arch_late - Perform any architecture specific initalization.
232+
* kgdb_arch_late - Perform any architecture specific initialization.
233233
*
234-
* This function will handle the late initalization of any
234+
* This function will handle the late initialization of any
235235
* architecture specific callbacks. This is an optional function for
236236
* handling things like late initialization of hw breakpoints. The
237237
* default implementation does nothing.

kernel/debug/debug_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x)
10321032
/*
10331033
* Take the following action on reboot notify depending on value:
10341034
* 1 == Enter debugger
1035-
* 0 == [the default] detatch debug client
1035+
* 0 == [the default] detach debug client
10361036
* -1 == Do nothing... and use this until the board resets
10371037
*/
10381038
switch (kgdbreboot) {

kernel/debug/kdb/kdb_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static char *kdballocenv(size_t bytes)
253253
* Parameters:
254254
* match A character string representing a numeric value
255255
* Outputs:
256-
* *value the unsigned long represntation of the env variable 'match'
256+
* *value the unsigned long representation of the env variable 'match'
257257
* Returns:
258258
* Zero on success, a kdb diagnostic on failure.
259259
*/
@@ -356,7 +356,7 @@ static void kdb_printenv(void)
356356
* Parameters:
357357
* arg A character string representing a numeric value
358358
* Outputs:
359-
* *value the unsigned long represntation of arg.
359+
* *value the unsigned long representation of arg.
360360
* Returns:
361361
* Zero on success, a kdb diagnostic on failure.
362362
*/
@@ -470,7 +470,7 @@ static int kdb_check_regs(void)
470470
* symbol name, and offset to the caller.
471471
*
472472
* The argument may consist of a numeric value (decimal or
473-
* hexidecimal), a symbol name, a register name (preceded by the
473+
* hexadecimal), a symbol name, a register name (preceded by the
474474
* percent sign), an environment variable with a numeric value
475475
* (preceded by a dollar sign) or a simple arithmetic expression
476476
* consisting of a symbol name, +/-, and a numeric constant value
@@ -894,7 +894,7 @@ static void parse_grep(const char *str)
894894
* Limited to 20 tokens.
895895
*
896896
* Real rudimentary tokenization. Basically only whitespace
897-
* is considered a token delimeter (but special consideration
897+
* is considered a token delimiter (but special consideration
898898
* is taken of the '=' sign as used by the 'set' command).
899899
*
900900
* The algorithm used to tokenize the input string relies on

kernel/debug/kdb/kdb_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
/*
6666
* KDB_MAXBPT describes the total number of breakpoints
67-
* supported by this architecure.
67+
* supported by this architecture.
6868
*/
6969
#define KDB_MAXBPT 16
7070

0 commit comments

Comments
 (0)