From 23970766e71aa66c49a2a782dc94f5a58d4e4616 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:04:57 +0100 Subject: check_swap stuff: Add comments to ifdef stuff to improve readability --- plugins/check_swap.d/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/check_swap.d') diff --git a/plugins/check_swap.d/swap.c b/plugins/check_swap.d/swap.c index 354efdbf..ece05fd2 100644 --- a/plugins/check_swap.d/swap.c +++ b/plugins/check_swap.d/swap.c @@ -30,7 +30,7 @@ swap_result get_swap_data(swap_config config) { } return getSwapFromProcMeminfo(PROC_MEMINFO); -#else +#else // HAVE_PROC_MEMINFO # ifdef HAVE_SWAP if (verbose >= 3) { printf("Using swap command %s with format: %s\n", SWAP_COMMAND, SWAP_FORMAT); @@ -48,13 +48,13 @@ swap_result get_swap_data(swap_config config) { } else { return getSwapFromSwapCommand(config, SWAP_COMMAND, SWAP_FORMAT); } -# else +# else // HAVE_SWAP # ifdef CHECK_SWAP_SWAPCTL_SVR4 return getSwapFromSwapctl_SRV4(); -# else +# else // CHECK_SWAP_SWAPCTL_SVR4 # ifdef CHECK_SWAP_SWAPCTL_BSD return getSwapFromSwapctl_BSD(); -# else +# else // CHECK_SWAP_SWAPCTL_BSD # error No way found to retrieve swap # endif /* CHECK_SWAP_SWAPCTL_BSD */ # endif /* CHECK_SWAP_SWAPCTL_SVR4 */ -- cgit v1.2.3-74-g34f1