From: Sebastien GODARD Date: Fri, 6 Jul 2018 09:27:44 +0000 (+0200) Subject: sar: Use SELECT_ACTIVITY() macro to select hugepages activity X-Git-Tag: v12.0.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c35a44470cb080c389a202984330cc82a0b0647;p=sysstat sar: Use SELECT_ACTIVITY() macro to select hugepages activity Signed-off-by: Sebastien GODARD --- 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':