diff options
author | Elliott Hughes <enh@google.com> | 2012-09-17 11:43:40 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-09-17 11:43:40 -0700 |
commit | 5f87b31d8076dff08b2363961b07fc052364fe95 (patch) | |
tree | 6b5a2bd9287996089b375c96b4f1320d474a30da /cmds | |
parent | 6e220a6ce6971555b883f4852c6e5d4c7a617815 (diff) | |
download | frameworks_native-5f87b31d8076dff08b2363961b07fc052364fe95.zip frameworks_native-5f87b31d8076dff08b2363961b07fc052364fe95.tar.gz frameworks_native-5f87b31d8076dff08b2363961b07fc052364fe95.tar.bz2 |
Use a named constant rather than a magic number.
Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/dumpstate/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index cfd7483..8f132d5 100644 --- 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; |