From 3c35a44470cb080c389a202984330cc82a0b0647 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 6 Jul 2018 11:27:44 +0200 Subject: [PATCH] sar: Use SELECT_ACTIVITY() macro to select hugepages activity Signed-off-by: Sebastien GODARD --- sa_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sa_common.c b/sa_common.c index 46db0ad..73588c4 100644 --- a/sa_common.c +++ b/sa_common.c @@ -2076,8 +2076,7 @@ int parse_sar_opt(char *argv[], int *opt, struct activity *act[], break; case 'H': - p = get_activity_position(act, A_HUGE, EXIT_IF_NOT_FOUND); - act[p]->options |= AO_SELECTED; + SELECT_ACTIVITY(A_HUGE); break; case 'h': -- 2.40.0