Use a named constant rather than a magic number.

Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
This commit is contained in:
Elliott Hughes 2012-09-17 11:43:40 -07:00
parent 6e220a6ce6
commit 5f87b31d80

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;