Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207308
b: refs/heads/master
c: 8c4af38
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Aug 10, 2010
1 parent a07c81d commit a3b36fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 547415d5edf8660aee040dc81d8c71b081a59bda
refs/heads/master: 8c4af38e9b2c2a78369c4e2e5706fe539ac64eb2
10 changes: 5 additions & 5 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,18 +1549,18 @@ void kmsg_dump(enum kmsg_dump_reason reason)
chars = logged_chars;
spin_unlock_irqrestore(&logbuf_lock, flags);

if (logged_chars > end) {
s1 = log_buf + log_buf_len - logged_chars + end;
l1 = logged_chars - end;
if (chars > end) {
s1 = log_buf + log_buf_len - chars + end;
l1 = chars - end;

s2 = log_buf;
l2 = end;
} else {
s1 = "";
l1 = 0;

s2 = log_buf + end - logged_chars;
l2 = logged_chars;
s2 = log_buf + end - chars;
l2 = chars;
}

if (!spin_trylock_irqsave(&dump_list_lock, flags)) {
Expand Down

0 comments on commit a3b36fa

Please sign in to comment.