Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83419
b: refs/heads/master
c: eed4a2a
h: refs/heads/master
i:
  83417: 9a0237f
  83415: 24a27b5
v: v3
  • Loading branch information
Denys Vlasenko authored and Linus Torvalds committed Feb 6, 2008
1 parent cd51c82 commit 34c265c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3242151906372f30f57feaa43b4cac96a23edb1
refs/heads/master: eed4a2aba7ff6d8c40d3d55b81f80352765ffcee
36 changes: 18 additions & 18 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ static int console_locked, console_suspended;
*/
static DEFINE_SPINLOCK(logbuf_lock);

#define LOG_BUF_MASK (log_buf_len-1)
#define LOG_BUF_MASK (log_buf_len-1)
#define LOG_BUF(idx) (log_buf[(idx) & LOG_BUF_MASK])

/*
* The indices into log_buf are not constrained to log_buf_len - they
* must be masked before subscripting
*/
static unsigned long log_start; /* Index into log_buf: next char to be read by syslog() */
static unsigned long con_start; /* Index into log_buf: next char to be sent to consoles */
static unsigned long log_end; /* Index into log_buf: most-recently-written-char + 1 */
static unsigned log_start; /* Index into log_buf: next char to be read by syslog() */
static unsigned con_start; /* Index into log_buf: next char to be sent to consoles */
static unsigned log_end; /* Index into log_buf: most-recently-written-char + 1 */

/*
* Array of consoles built from command line options (console=)
Expand All @@ -128,17 +128,17 @@ static int console_may_schedule;
static char __log_buf[__LOG_BUF_LEN];
static char *log_buf = __log_buf;
static int log_buf_len = __LOG_BUF_LEN;
static unsigned long logged_chars; /* Number of chars produced since last read+clear operation */
static unsigned logged_chars; /* Number of chars produced since last read+clear operation */

static int __init log_buf_len_setup(char *str)
{
unsigned long size = memparse(str, &str);
unsigned size = memparse(str, &str);
unsigned long flags;

if (size)
size = roundup_pow_of_two(size);
if (size > log_buf_len) {
unsigned long start, dest_idx, offset;
unsigned start, dest_idx, offset;
char *new_log_buf;

new_log_buf = alloc_bootmem(size);
Expand Down Expand Up @@ -295,7 +295,7 @@ int log_buf_read(int idx)
*/
int do_syslog(int type, char __user *buf, int len)
{
unsigned long i, j, limit, count;
unsigned i, j, limit, count;
int do_clear = 0;
char c;
int error = 0;
Expand Down Expand Up @@ -436,7 +436,7 @@ asmlinkage long sys_syslog(int type, char __user *buf, int len)
/*
* Call the console drivers on a range of log_buf
*/
static void __call_console_drivers(unsigned long start, unsigned long end)
static void __call_console_drivers(unsigned start, unsigned end)
{
struct console *con;

Expand All @@ -463,8 +463,8 @@ early_param("ignore_loglevel", ignore_loglevel_setup);
/*
* Write out chars from start to end - 1 inclusive
*/
static void _call_console_drivers(unsigned long start,
unsigned long end, int msg_log_level)
static void _call_console_drivers(unsigned start,
unsigned end, int msg_log_level)
{
if ((msg_log_level < console_loglevel || ignore_loglevel) &&
console_drivers && start != end) {
Expand All @@ -484,12 +484,12 @@ static void _call_console_drivers(unsigned long start,
* log_buf[start] to log_buf[end - 1].
* The console_sem must be held.
*/
static void call_console_drivers(unsigned long start, unsigned long end)
static void call_console_drivers(unsigned start, unsigned end)
{
unsigned long cur_index, start_print;
unsigned cur_index, start_print;
static int msg_level = -1;

BUG_ON(((long)(start - end)) > 0);
BUG_ON(((int)(start - end)) > 0);

cur_index = start;
start_print = start;
Expand Down Expand Up @@ -790,7 +790,7 @@ asmlinkage long sys_syslog(int type, char __user *buf, int len)
return -ENOSYS;
}

static void call_console_drivers(unsigned long start, unsigned long end)
static void call_console_drivers(unsigned start, unsigned end)
{
}

Expand Down Expand Up @@ -983,8 +983,8 @@ void wake_up_klogd(void)
void release_console_sem(void)
{
unsigned long flags;
unsigned long _con_start, _log_end;
unsigned long wake_klogd = 0;
unsigned _con_start, _log_end;
unsigned wake_klogd = 0;

if (console_suspended) {
up(&secondary_console_sem);
Expand Down Expand Up @@ -1275,7 +1275,7 @@ void tty_write_message(struct tty_struct *tty, char *msg)
int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst)
{
static DEFINE_SPINLOCK(ratelimit_lock);
static unsigned long toks = 10 * 5 * HZ;
static unsigned toks = 10 * 5 * HZ;
static unsigned long last_msg;
static int missed;
unsigned long flags;
Expand Down

0 comments on commit 34c265c

Please sign in to comment.