Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100670
b: refs/heads/master
c: 42fdfa2
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed May 24, 2008
1 parent 5b786cf commit e8d5f4d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 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: 7f6f3a39d258adf51f0fb1fe0dab52272a1c61a4
refs/heads/master: 42fdfa238a23643226910acf922ea930b3286032
6 changes: 0 additions & 6 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ asmlinkage int vprintk(const char *fmt, va_list args)
__attribute__ ((format (printf, 1, 0)));
asmlinkage int printk(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2))) __cold;
extern int log_buf_get_len(void);
extern int log_buf_read(int idx);
extern int log_buf_copy(char *dest, int idx, int len);

extern int printk_ratelimit_jiffies;
extern int printk_ratelimit_burst;
Expand All @@ -202,9 +199,6 @@ static inline int vprintk(const char *s, va_list args) { return 0; }
static inline int printk(const char *s, ...)
__attribute__ ((format (printf, 1, 2)));
static inline int __cold printk(const char *s, ...) { return 0; }
static inline int log_buf_get_len(void) { return 0; }
static inline int log_buf_read(int idx) { return 0; }
static inline int log_buf_copy(char *dest, int idx, int len) { return 0; }
static inline int printk_ratelimit(void) { return 0; }
static inline int __printk_ratelimit(int ratelimit_jiffies, \
int ratelimit_burst) { return 0; }
Expand Down
13 changes: 0 additions & 13 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,6 @@ int log_buf_copy(char *dest, int idx, int len)
return ret;
}

/*
* Extract a single character from the log buffer.
*/
static int log_buf_read(int idx)
{
char ret;

if (log_buf_copy(&ret, idx, 1) == 1)
return ret;
else
return -1;
}

/*
* Commands to do_syslog:
*
Expand Down

0 comments on commit e8d5f4d

Please sign in to comment.