OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e220a6
)
Use a named constant rather than a magic number.
author
Elliott Hughes
<enh@google.com>
Mon, 17 Sep 2012 18:43:40 +0000
(11:43 -0700)
committer
Elliott Hughes
<enh@google.com>
Mon, 17 Sep 2012 18:43:40 +0000
(11:43 -0700)
Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
cmds/dumpstate/utils.c
patch
|
blob
|
history
diff --git
a/cmds/dumpstate/utils.c
b/cmds/dumpstate/utils.c
index
cfd7483
..
8f132d5
100644
(file)
--- a/
cmds/dumpstate/utils.c
+++ b/
cmds/dumpstate/utils.c
@@
-109,7
+109,8
@@
out_close:
void do_dmesg() {
printf("------ KERNEL LOG (dmesg) ------\n");
- int size = klogctl(10, NULL, 0); /* Get size of kernel buffer */
+ /* Get size of kernel buffer */
+ int size = klogctl(KLOG_SIZE_BUFFER, NULL, 0);
if (size <= 0) {
printf("Unexpected klogctl return value: %d\n\n", size);
return;