summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2021-01-27 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2021-01-27 08:00:00 +0000
commitfb26082515ad4a5d896f66877945a0b5ce789a03 (patch)
tree335da825c0468b55e4ff675e69eec3ff7fffae6f
parentfa199d82f6b5b85437f09cf66211f7237d17834a (diff)
downloadstrace-fb26082515ad4a5d896f66877945a0b5ce789a03.tar.gz
Stop using PRINT_FIELD_NUMERIC_UMODE_T
* open.c (print_open_how): Use PRINT_FIELD_OBJ_U instead of PRINT_FIELD_NUMERIC_UMODE_T. * ipc_msgctl.c (print_ipc_perm): Likewise. * ipc_semctl.c (print_ipc_perm): Likewise. * ipc_shmctl.c (print_ipc_perm): Likewise.
-rw-r--r--ipc_msgctl.c2
-rw-r--r--ipc_semctl.c2
-rw-r--r--ipc_shmctl.c2
-rw-r--r--open.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ipc_msgctl.c b/ipc_msgctl.c
index e9f81e5a1..340b3f93c 100644
--- a/ipc_msgctl.c
+++ b/ipc_msgctl.c
@@ -33,7 +33,7 @@ print_ipc_perm(const typeof_field(msqid_ds_t, msg_perm) *const p,
{
PRINT_FIELD_UID("{", *p, uid);
PRINT_FIELD_UID(", ", *p, gid);
- PRINT_FIELD_NUMERIC_UMODE_T(", ", *p, mode);
+ PRINT_FIELD_OBJ_U(", ", *p, mode, print_numeric_ll_umode_t);
if (cmd != IPC_SET) {
PRINT_FIELD_U(", ", *p, key);
PRINT_FIELD_UID(", ", *p, cuid);
diff --git a/ipc_semctl.c b/ipc_semctl.c
index 454d741d7..b95e0cf0e 100644
--- a/ipc_semctl.c
+++ b/ipc_semctl.c
@@ -36,7 +36,7 @@ print_ipc_perm(const typeof_field(semid_ds_t, sem_perm) *const p,
{
PRINT_FIELD_UID("{", *p, uid);
PRINT_FIELD_UID(", ", *p, gid);
- PRINT_FIELD_NUMERIC_UMODE_T(", ", *p, mode);
+ PRINT_FIELD_OBJ_U(", ", *p, mode, print_numeric_ll_umode_t);
if (cmd != IPC_SET) {
PRINT_FIELD_U(", ", *p, key);
PRINT_FIELD_UID(", ", *p, cuid);
diff --git a/ipc_shmctl.c b/ipc_shmctl.c
index b9e1e010f..51fa995cb 100644
--- a/ipc_shmctl.c
+++ b/ipc_shmctl.c
@@ -37,7 +37,7 @@ print_ipc_perm(const typeof_field(shmid_ds_t, shm_perm) *const p,
{
PRINT_FIELD_UID("{", *p, uid);
PRINT_FIELD_UID(", ", *p, gid);
- PRINT_FIELD_NUMERIC_UMODE_T(", ", *p, mode);
+ PRINT_FIELD_OBJ_U(", ", *p, mode, print_numeric_ll_umode_t);
if (cmd != IPC_SET) {
PRINT_FIELD_U(", ", *p, key);
PRINT_FIELD_UID(", ", *p, cuid);
diff --git a/open.c b/open.c
index f4cdf4d78..7cb19f7cc 100644
--- a/open.c
+++ b/open.c
@@ -136,7 +136,7 @@ print_open_how(struct tcb *tcp, kernel_ulong_t addr, kernel_ulong_t size)
PRINT_FIELD_OBJ_VAL("{", how, flags, tprint_open_modes64);
if ((how.flags & (O_CREAT | __O_TMPFILE)) || how.mode) {
- PRINT_FIELD_NUMERIC_UMODE_T(", ", how, mode);
+ PRINT_FIELD_OBJ_U(", ", how, mode, print_numeric_ll_umode_t);
}
PRINT_FIELD_FLAGS(", ", how, resolve, open_resolve_flags,
"RESOLVE_???");