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 <yuming.han@unisoc.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Icac2810c4efca2a07cefba6e220165ef4f194867
This commit is contained in:
Suren Baghdasaryan 2022-06-22 16:09:17 -07:00
parent e9769f7cf3
commit caebcddf9f
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ enum vmstat_field {
VS_FIELD_COUNT 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_free_pages",
"nr_inactive_file", "nr_inactive_file",
"nr_active_file", "nr_active_file",