From caebcddf9f3fde5a9d1391ab96ce067ad0bad581 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Wed, 22 Jun 2022 16:09:17 -0700 Subject: [PATCH] lmkd: Fix the size of vmstat_field_names array The size of the vmstat_field_names array should correspond to the number of elements in vmstat_field enum (VS_FIELD_COUNT). Bug: 227769256 Reported-by: Yuming Han Signed-off-by: Suren Baghdasaryan Change-Id: Icac2810c4efca2a07cefba6e220165ef4f194867 --- lmkd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmkd.cpp b/lmkd.cpp index 47f5229..3671766 100644 --- a/lmkd.cpp +++ b/lmkd.cpp @@ -469,7 +469,7 @@ enum vmstat_field { VS_FIELD_COUNT }; -static const char* const vmstat_field_names[MI_FIELD_COUNT] = { +static const char* const vmstat_field_names[VS_FIELD_COUNT] = { "nr_free_pages", "nr_inactive_file", "nr_active_file",