projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1da95b
)
Revert "printk: Fix log_buf_copy termination."
author
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:44:38 +0000
(22:44 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:44:38 +0000
(22:44 +0800)
This reverts commit
8a3025c963926f1cc36b15f6b95b9da0c1ab1cdf
.
kernel/printk.c
patch
|
blob
|
history
diff --git
a/kernel/printk.c
b/kernel/printk.c
index 16fbcf7a2de30f02b36940102ef1818c5f8dee36..e89b123a2ebbc0c2c2236fbc6e85467c81844b97 100644
(file)
--- a/
kernel/printk.c
+++ b/
kernel/printk.c
@@
-285,8
+285,8
@@
int log_buf_copy(char *dest, int idx, int len)
if (idx < 0 || idx >= max) {
ret = -1;
} else {
- if (len > max
- idx
)
- len = max
- idx
;
+ if (len > max)
+ len = max;
ret = len;
idx += (log_end - max);
while (len-- > 0)