summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-07-18 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-07-18 08:00:00 +0000
commit2363c4d6f2ce40f5a93df4811c77c41ca5dde50d (patch)
tree098e9c5edc5519c391eb993900133cd309a512b3
parent894d8c964c6aa1eef89c6d71be11b9c0199c8021 (diff)
downloadstrace-2363c4d6f2ce40f5a93df4811c77c41ca5dde50d.tar.gz
Rename print_numeric_umode_t_64 to print_numeric_ll_umode_t
* printmode.c (print_numeric_umode_t_64): Rename to print_numeric_ll_umode_t, change the type of its argument to unsigned long long. * defs.h: Likewise. * open.c (print_open_how): Use print_numeric_ll_umode_t instead of print_numeric_umode_t_64.
-rw-r--r--defs.h2
-rw-r--r--open.c2
-rw-r--r--printmode.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/defs.h b/defs.h
index d8bd51351..81c0d0652 100644
--- a/defs.h
+++ b/defs.h
@@ -868,7 +868,7 @@ extern void print_uuid(const unsigned char *uuid);
extern void print_symbolic_mode_t(unsigned int);
extern void print_numeric_umode_t(unsigned short);
-extern void print_numeric_umode_t_64(uint64_t);
+extern void print_numeric_ll_umode_t(unsigned long long);
extern void print_numeric_long_umask(unsigned long);
extern void print_dev_t(unsigned long long dev);
extern void print_kernel_version(unsigned long version);
diff --git a/open.c b/open.c
index 690453ed3..8a2f894a9 100644
--- a/open.c
+++ b/open.c
@@ -138,7 +138,7 @@ print_open_how(struct tcb *tcp, kernel_ulong_t addr, kernel_ulong_t size)
tprint_open_modes64(how.flags);
if ((how.flags & (O_CREAT| __O_TMPFILE)) || how.mode) {
tprints(", mode=");
- print_numeric_umode_t_64(how.mode);
+ print_numeric_ll_umode_t((unsigned long long) how.mode);
}
PRINT_FIELD_FLAGS(", ", how, resolve, open_resolve_flags,
"RESOLVE_???");
diff --git a/printmode.c b/printmode.c
index 8332604ab..075142adc 100644
--- a/printmode.c
+++ b/printmode.c
@@ -47,9 +47,9 @@ print_numeric_umode_t(const unsigned short mode)
}
void
-print_numeric_umode_t_64(const uint64_t mode)
+print_numeric_ll_umode_t(const unsigned long long mode)
{
- tprintf("%#03" PRIo64, mode);
+ tprintf("%#03llo", mode);
}
void