From 5a45c1ba39f78f3f5e72458130684edc927f49c4 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Sat, 4 Jan 2025 20:02:59 +0000 Subject: [PATCH] clang-format --- core/arch/aarch64/proc.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/core/arch/aarch64/proc.c b/core/arch/aarch64/proc.c index 0ca0eb3a568..0650e3e5c9a 100644 --- a/core/arch/aarch64/proc.c +++ b/core/arch/aarch64/proc.c @@ -188,16 +188,17 @@ get_processor_specific_info(void) { memset(&cpu_info.features, 0, sizeof(cpu_info.features)); -# define SET_FEAT_IF_SYSCTL_EQ(FEATURE, SYSCTL, TY, VAL) \ - TY FEATURE##_tmp; \ - size_t FEATURE##_tmp_buflen = sizeof(FEATURE##_tmp); \ - if (sysctlbyname(SYSCTL, &FEATURE##_tmp, &FEATURE##_tmp_buflen, NULL, 0) == -1) { \ - ASSERT_CURIOSITY(false && SYSCTL " sysctl failed"); \ - SYSLOG_INTERNAL_WARNING("Failed to read " SYSCTL " sysctl"); \ - } else if (FEATURE##_tmp_buflen == sizeof(FEATURE##_tmp)) { \ - if (FEATURE##_tmp == VAL) { \ - proc_set_feature(FEATURE, true); \ - } \ +# define SET_FEAT_IF_SYSCTL_EQ(FEATURE, SYSCTL, TY, VAL) \ + TY FEATURE##_tmp; \ + size_t FEATURE##_tmp_buflen = sizeof(FEATURE##_tmp); \ + if (sysctlbyname(SYSCTL, &FEATURE##_tmp, &FEATURE##_tmp_buflen, NULL, 0) == \ + -1) { \ + ASSERT_CURIOSITY(false && SYSCTL " sysctl failed"); \ + SYSLOG_INTERNAL_WARNING("Failed to read " SYSCTL " sysctl"); \ + } else if (FEATURE##_tmp_buflen == sizeof(FEATURE##_tmp)) { \ + if (FEATURE##_tmp == VAL) { \ + proc_set_feature(FEATURE, true); \ + } \ } SET_FEAT_IF_SYSCTL_EQ(FEATURE_PAUTH, "hw.optional.arm.FEAT_PAuth", uint32_t, 1);