diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-05-07 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-05-07 08:00:00 +0000 |
commit | 60848f9ce7ce7b21d0aa7f92c6a3f001352d5952 (patch) | |
tree | 8db459920abd36dbf857de59b24df63374548189 /tests/ptrace.c | |
parent | 908111b7d091ee0defddd619b2dc352d37656407 (diff) | |
download | strace-60848f9ce7ce7b21d0aa7f92c6a3f001352d5952.tar.gz |
Fix preprocessor indentation
Indent the C preprocessor directives to reflect their nesting
using the following script:
$ cppi -l $(git grep -El '^[[:space:]]*#[[:space:]]*(if|ifdef|ifndef|elif|else|endif|define|pragma)[[:space:]]' src tests |grep -v '\.sh$') |while read f; do
cppi < "$f" > "$f".cppi; mv "$f".cppi "$f"
done
Diffstat (limited to 'tests/ptrace.c')
-rw-r--r-- | tests/ptrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ptrace.c b/tests/ptrace.c index 7c69af61d..ca8d6f489 100644 --- a/tests/ptrace.c +++ b/tests/ptrace.c @@ -2004,9 +2004,9 @@ main(void) }, #endif { ARG_XLAT_KNOWN(0x5, "BUS_MCEERR_AO"), -# if !defined(BUS_OPFETCH) && defined(HAVE_SIGINFO_T_SI_ADDR_LSB) +#if !defined(BUS_OPFETCH) && defined(HAVE_SIGINFO_T_SI_ADDR_LSB) ", si_addr_lsb=0xdead" -# endif +#endif }, { ARG_STR(0x6) }, { ARG_STR(0x499602d2) }, @@ -2067,7 +2067,7 @@ main(void) { ARG_XLAT_KNOWN(0x3, "SEGV_BNDERR"), ", si_lower=0x" UP64BIT("beefface") "cafedead" ", si_upper=0x" UP64BIT("badc0ded") "dadfaced", -#endif /* HAVE_SIGINFO_T_SI_LOWER */ +# endif /* HAVE_SIGINFO_T_SI_LOWER */ }, #endif /* SEGV_STACKFLOW */ #ifdef __SEGV_PSTKOVF |