mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 08:39:52 +00:00
printk: fix some comments
Fix a few comments that don't accurately describe their corresponding code. It also fixes some minor typographical errors. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Petr Mladek <pmladek@suse.cz> Cc: Andi Kleen <ak@linux.intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: Jan Kara <jack@suse.cz> Cc: John Stultz <john.stultz@linaro.org> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
42a9dc0b3d
commit
0b90fec3b9
@ -113,9 +113,9 @@ static int __down_trylock_console_sem(unsigned long ip)
|
|||||||
* This is used for debugging the mess that is the VT code by
|
* This is used for debugging the mess that is the VT code by
|
||||||
* keeping track if we have the console semaphore held. It's
|
* keeping track if we have the console semaphore held. It's
|
||||||
* definitely not the perfect debug tool (we don't know if _WE_
|
* definitely not the perfect debug tool (we don't know if _WE_
|
||||||
* hold it are racing, but it helps tracking those weird code
|
* hold it and are racing, but it helps tracking those weird code
|
||||||
* path in the console code where we end up in places I want
|
* paths in the console code where we end up in places I want
|
||||||
* locked without the console sempahore held
|
* locked without the console sempahore held).
|
||||||
*/
|
*/
|
||||||
static int console_locked, console_suspended;
|
static int console_locked, console_suspended;
|
||||||
|
|
||||||
@ -146,8 +146,8 @@ static int console_may_schedule;
|
|||||||
* the overall length of the record.
|
* the overall length of the record.
|
||||||
*
|
*
|
||||||
* The heads to the first and last entry in the buffer, as well as the
|
* The heads to the first and last entry in the buffer, as well as the
|
||||||
* sequence numbers of these both entries are maintained when messages
|
* sequence numbers of these entries are maintained when messages are
|
||||||
* are stored..
|
* stored.
|
||||||
*
|
*
|
||||||
* If the heads indicate available messages, the length in the header
|
* If the heads indicate available messages, the length in the header
|
||||||
* tells the start next message. A length == 0 for the next message
|
* tells the start next message. A length == 0 for the next message
|
||||||
@ -345,7 +345,7 @@ static int log_make_free_space(u32 msg_size)
|
|||||||
while (log_first_seq < log_next_seq) {
|
while (log_first_seq < log_next_seq) {
|
||||||
if (logbuf_has_space(msg_size, false))
|
if (logbuf_has_space(msg_size, false))
|
||||||
return 0;
|
return 0;
|
||||||
/* drop old messages until we have enough continuous space */
|
/* drop old messages until we have enough contiguous space */
|
||||||
log_first_idx = log_next(log_first_idx);
|
log_first_idx = log_next(log_first_idx);
|
||||||
log_first_seq++;
|
log_first_seq++;
|
||||||
}
|
}
|
||||||
@ -1517,7 +1517,7 @@ static struct cont {
|
|||||||
struct task_struct *owner; /* task of first print*/
|
struct task_struct *owner; /* task of first print*/
|
||||||
u64 ts_nsec; /* time of first print */
|
u64 ts_nsec; /* time of first print */
|
||||||
u8 level; /* log level of first message */
|
u8 level; /* log level of first message */
|
||||||
u8 facility; /* log level of first message */
|
u8 facility; /* log facility of first message */
|
||||||
enum log_flags flags; /* prefix, newline flags */
|
enum log_flags flags; /* prefix, newline flags */
|
||||||
bool flushed:1; /* buffer sealed and committed */
|
bool flushed:1; /* buffer sealed and committed */
|
||||||
} cont;
|
} cont;
|
||||||
@ -1922,11 +1922,12 @@ static int __add_preferred_console(char *name, int idx, char *options,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Set up a list of consoles. Called from init/main.c
|
* Set up a console. Called via do_early_param() in init/main.c
|
||||||
|
* for each "console=" parameter in the boot command line.
|
||||||
*/
|
*/
|
||||||
static int __init console_setup(char *str)
|
static int __init console_setup(char *str)
|
||||||
{
|
{
|
||||||
char buf[sizeof(console_cmdline[0].name) + 4]; /* 4 for index */
|
char buf[sizeof(console_cmdline[0].name) + 4]; /* 4 for "ttyS" */
|
||||||
char *s, *options, *brl_options = NULL;
|
char *s, *options, *brl_options = NULL;
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
@ -2086,8 +2087,8 @@ EXPORT_SYMBOL(console_lock);
|
|||||||
/**
|
/**
|
||||||
* console_trylock - try to lock the console system for exclusive use.
|
* console_trylock - try to lock the console system for exclusive use.
|
||||||
*
|
*
|
||||||
* Tried to acquire a lock which guarantees that the caller has
|
* Try to acquire a lock which guarantees that the caller has exclusive
|
||||||
* exclusive access to the console system and the console_drivers list.
|
* access to the console system and the console_drivers list.
|
||||||
*
|
*
|
||||||
* returns 1 on success, and 0 on failure to acquire the lock.
|
* returns 1 on success, and 0 on failure to acquire the lock.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user