From 4f570db32cd78344b587cdac1b685e90256e8b2c Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Fri, 10 Dec 2021 19:33:43 +0900 Subject: Fix convert_status_to_str Change-Id: I93e614c76a9f7aaf4749d3fed37236cb909a59fb Signed-off-by: Unsung Lee --- src/memory/vmpressure-lowmem-handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memory/vmpressure-lowmem-handler.c b/src/memory/vmpressure-lowmem-handler.c index d29f21d4..fb15a593 100644 --- a/src/memory/vmpressure-lowmem-handler.c +++ b/src/memory/vmpressure-lowmem-handler.c @@ -400,8 +400,8 @@ static const char *convert_type_to_str(int type) static const char *convert_status_to_str(int status) { static const char *status_table[] = - {"none", "done", "drop", "retry", "next_type", "cont"}; - if(status >= LOWMEM_RECLAIM_NONE && status <= LOWMEM_RECLAIM_CONT) + {"none", "done", "drop", "cont", "retry", "next_type"}; + if(status >= LOWMEM_RECLAIM_NONE && status <= LOWMEM_RECLAIM_NEXT_TYPE) return status_table[status]; return "error status"; } -- cgit v1.2.3