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:
parent
e9769f7cf3
commit
caebcddf9f
2
lmkd.cpp
2
lmkd.cpp
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue