extern const char *sprinttime_nsec(long long sec, unsigned long long nsec);
extern const char *sprinttime_usec(long long sec, unsigned long long usec);
-#ifndef MAX_ADDR_LEN
-# define MAX_ADDR_LEN 32
-#endif
+# ifndef MAX_ADDR_LEN
+# define MAX_ADDR_LEN 32
+# endif
extern const char *sprint_mac_addr(const uint8_t addr[], size_t size);
extern void print_mac_addr(const char *prefix,
(xlat_), NULL); \
} while (0)
-#define PRINT_FIELD_ERR_D(prefix_, where_, field_) \
+# define PRINT_FIELD_ERR_D(prefix_, where_, field_) \
do { \
STRACE_PRINTF("%s%s=", (prefix_), #field_); \
print_err(sign_extend_unsigned_to_ll((where_).field_), \
true); \
} while (0)
-#define PRINT_FIELD_ERR_U(prefix_, where_, field_) \
+# define PRINT_FIELD_ERR_U(prefix_, where_, field_) \
do { \
STRACE_PRINTF("%s%s=", (prefix_), #field_); \
print_err(zero_extend_signed_to_ull((where_).field_), \
(size_)); \
} while (0)
-#define PRINT_FIELD_HWADDR_SZ(prefix_, where_, field_, size_, hwtype_) \
+# define PRINT_FIELD_HWADDR_SZ(prefix_, where_, field_, size_, hwtype_) \
do { \
static_assert(sizeof(((where_).field_)[0]) == 1, \
"hwaddress is not a byte array"); \
static void
print_tls(const char *pfx, uint64_t arg_ptr, enum validity_flags vf)
{
-# if defined HAVE_STRUCT_USER_DESC && defined __i386__
+#if defined HAVE_STRUCT_USER_DESC && defined __i386__
if (!(vf & TLS_VALID)) {
print_addr64(pfx, arg_ptr);
return;
arg->limit_in_pages,
arg->seg_not_present,
arg->useable);
-# else
+#else
print_addr64(pfx, arg_ptr);
-# endif
+#endif
}
static inline void
int *parent_tid = tail_alloc(sizeof(*parent_tid));
long rc;
-# if defined HAVE_STRUCT_USER_DESC
+#if defined HAVE_STRUCT_USER_DESC
struct user_desc *tls = tail_alloc(sizeof(*tls));
fill_memory(tls, sizeof(*tls));
-# else
+#else
int *tls = tail_alloc(sizeof(*tls));
-# endif
+#endif
*pidfd = 0xbadc0ded;
*child_tid = 0xdeadface;