Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311510
b: refs/heads/master
c: d362082
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Greg Kroah-Hartman committed Jun 29, 2012
1 parent 3f302a7 commit 012c795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 084681d14e429cb6192262ac7437f00e2c02f26a
refs/heads/master: d36208227d03c44c0a74cd702cc94528162e1703
13 changes: 6 additions & 7 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1496,15 +1496,14 @@ asmlinkage int vprintk_emit(int facility, int level,
bool stored = false;

/*
* Flush the conflicting buffer. An earlier newline was missing,
* or we race with a continuation line from an interrupt.
* If an earlier newline was missing and it was the same task,
* either merge it with the current buffer and flush, or if
* there was a race with interrupts (prefix == true) then just
* flush it out and store this line separately.
*/
if (cont.len && prefix && cont.owner == current)
cont_flush();

/* Merge with our buffer if possible; flush it in any case */
if (cont.len && cont.owner == current) {
stored = cont_add(facility, level, text, text_len);
if (!prefix)
stored = cont_add(facility, level, text, text_len);
cont_flush();
}

Expand Down

0 comments on commit 012c795

Please sign in to comment.