print_fields.h: rename PRINT_FIELD_UID to PRINT_FIELD_ID

As uid is not the only thing that has a special treatment of the -1
value (and, as a result, needs special care), let's rename
PRINT_FIELD_UID to PRINT_FIELD_ID and make PRINT_FIELD_UID its alias.

* print_fields.h (PRINT_FIELD_ID): Rename from PRINT_FIELD_UID.
(PRINT_FIELD_UID): Define to PRINT_FIELD_ID.
This commit is contained in:
Eugene Syromyatnikov 2018-01-05 20:57:57 +01:00 committed by Dmitry V. Levin
parent a35f7f1fa1
commit 45532079c6

View File

@ -74,7 +74,11 @@
(dflt_)); \
} while (0)
#define PRINT_FIELD_UID(prefix_, where_, field_) \
/*
* Generic "ID" printing. ID is considered unsigned except for the special value
* of -1.
*/
#define PRINT_FIELD_ID(prefix_, where_, field_) \
do { \
if (sign_extend_unsigned_to_ll((where_).field_) == -1LL) \
STRACE_PRINTF("%s%s=-1", (prefix_), #field_); \
@ -83,6 +87,8 @@
zero_extend_signed_to_ull((where_).field_)); \
} while (0)
#define PRINT_FIELD_UID PRINT_FIELD_ID
#define PRINT_FIELD_STRING(prefix_, where_, field_, len_, style_) \
do { \
STRACE_PRINTF("%s%s=", (prefix_), #field_); \