printk: fix typos in comments

Fix spelling/grammatical errors in printk.c and nbcon.c:
- "precation" -> "precautionary"
- "othrewise" -> "otherwise"
- "An usable" -> "A usable"
- "made a progress" -> "made progress"
- "preemtible" -> "preemptible"
- "mechasism" -> "mechanism"
- "ownerhip" -> "ownership"

Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
Link: https://patch.msgid.link/pakfewagyzb7da3yuxnaxdaoma5w4j2c7i3xebmcld3xy4mqs5@zxsx2idpxrdq
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
Naveen Kumar Chaudhary 2026-06-01 09:26:26 +05:30 committed by Petr Mladek
parent b09b6d0c40
commit 6a579050f8
2 changed files with 6 additions and 6 deletions

View File

@ -1487,7 +1487,7 @@ bool nbcon_allow_unsafe_takeover(void)
* or write_thread().
*
* When false, the write_thread() callback is used and would be
* called in a preemtible context unless disabled by the
* called in a preemptible context unless disabled by the
* device_lock. The legacy handover is not allowed in this mode.
*
* Context: Any context except NMI.
@ -1868,7 +1868,7 @@ void nbcon_free(struct console *con)
* Return: True if the console was acquired. False otherwise.
*
* Console drivers will usually use their own internal synchronization
* mechasism to synchronize between console printing and non-printing
* mechanism to synchronize between console printing and non-printing
* activities (such as setting baud rates). However, nbcon console drivers
* supporting atomic consoles may also want to mark unsafe sections when
* performing non-printing activities in order to synchronize against their
@ -1954,7 +1954,7 @@ EXPORT_SYMBOL_GPL(nbcon_device_release);
*
* kdb emits messages on consoles registered for printk() without
* storing them into the ring buffer. It has to acquire the console
* ownerhip so that it could call con->write_atomic() callback a safe way.
* ownership so that it could call con->write_atomic() callback a safe way.
*
* This function acquires the nbcon console using priority NBCON_PRIO_EMERGENCY
* and marks it unsafe for handover/takeover.

View File

@ -188,7 +188,7 @@ static int __init control_devkmsg(char *str)
/*
* Sysctl cannot change it anymore. The kernel command line setting of
* this parameter is to force the setting to be permanent throughout the
* runtime of the system. This is a precation measure against userspace
* runtime of the system. This is a precautionary measure against userspace
* trying to be a smarta** and attempting to change it up on us.
*/
devkmsg_log |= DEVKMSG_LOG_MASK_LOCK;
@ -1975,7 +1975,7 @@ int console_lock_spinning_disable_and_check(int cookie)
* the current owner is running and cannot reschedule until it
* is ready to lose the lock.
*
* Return: 1 if we got the lock, 0 othrewise
* Return: 1 if we got the lock, 0 otherwise
*/
static int console_trylock_spinning(void)
{
@ -3285,7 +3285,7 @@ static bool console_flush_one_record(bool do_cond_resched, u64 *next_seq, bool *
continue;
/*
* An usable console made a progress. There might still be
* A usable console made progress. There might still be
* pending messages.
*/
*try_again = true;