am c8cff90d: Merge "Use a named constant rather than a magic number." into jb-mr1-dev

* commit 'c8cff90d49b6eeaf0290c16517ff49df185dbdcd':
  Use a named constant rather than a magic number.
This commit is contained in:
Elliott Hughes 2012-09-17 12:13:28 -07:00 committed by Android Git Automerger
commit 001d3c28af

View File

@ -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;