diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-11-28 13:40:11 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-11-28 13:12:00 +0000 |
commit | 8edc56b213e35ac9bdeaa13abc2009e9e5c132bd (patch) | |
tree | c9c050e3cb141f195cddcc06b3392376b3c62afe | |
parent | a16f5815c0b350e399f2e117c3fe61b4309361ba (diff) | |
download | strace-8edc56b213e35ac9bdeaa13abc2009e9e5c132bd.tar.gz |
src/strace.c: remove Yflag_qual
It is used only once, contrary to {y,q,t}flag_qual variables.
* src/strace.c (init) <Yflag_qual>: Remove.
(init) <case 'Y'>: Replace Yflag_qual with "comm" in the argument
to qualify_decode_pid.
Complements: v5.14-180-g255a59247 "Implement -Y/--decode-pids=comm option for printing command names for PIDs"
-rw-r--r-- | src/strace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strace.c b/src/strace.c index 0b919cfa6..ba4df7db2 100644 --- a/src/strace.c +++ b/src/strace.c @@ -2062,7 +2062,6 @@ init(int argc, char *argv[]) static const char qqqflag_qual[] = "all"; static const char yflag_qual[] = "path"; static const char yyflag_qual[] = "all"; - static const char Yflag_qual[] = "comm"; static const char tflag_str[] = "format:time"; static const char ttflag_str[] = "precision:us,format:time"; static const char tttflag_str[] = "format:unix,precision:us"; @@ -2418,7 +2417,7 @@ init(int argc, char *argv[]) yflag_short++; break; case 'Y': - qualify_decode_pid(Yflag_qual); + qualify_decode_pid("comm"); break; case GETOPT_PIDNS_TRANSLATION: qualify_decode_pid("pidns"); |