From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org
Subject: [PATCH v4 10/10] trace-cmd dump: Align better the output of flyrecord dump
Date: Thu, 11 Nov 2021 17:12:50 +0200 [thread overview]
Message-ID: <20211111151250.87023-11-tz.stoyanov@gmail.com> (raw)
In-Reply-To: <20211111151250.87023-1-tz.stoyanov@gmail.com>
The flyrecord dump prints various file offsets and sizes, that can be
huge numbers. Add format arguments to align better the output.
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
tracecmd/trace-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tracecmd/trace-dump.c b/tracecmd/trace-dump.c
index 8986f9b0..9013f8b5 100644
--- a/tracecmd/trace-dump.c
+++ b/tracecmd/trace-dump.c
@@ -943,7 +943,7 @@ static void dump_flyrecord(int fd)
die("cannot read the cpu %d offset", i);
if (read_file_number(fd, &cpu_size, 8))
die("cannot read the cpu %d size", i);
- do_print(FLYRECORD, "\t\t %lld %lld\t[offset, size of cpu %d]\n",
+ do_print(FLYRECORD, "\t %10.lld %10.lld\t[offset, size of cpu %d]\n",
cpu_offset, cpu_size, i);
}
dump_clock(fd);
--
2.33.1
prev parent reply other threads:[~2021-11-11 15:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-11 15:12 [PATCH v4 00/10] trace-cmd dump - v7 update Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 01/10] trace-cmd dump: Add helpers for processing trace file version 7 Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 02/10] trace-cmd dump: Print compression header Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 03/10] trace-cmd dump: Add helpers for processing trace file sections Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 04/10] trace-cmd dump: Read recursively all options sections Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 05/10] trace-cmd dump: Read extended BUFFER option Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 06/10] trace-cmd dump: Dump sections Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 07/10] trace-cmd dump: Dump trace file version 7 Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 08/10] trace-cmd dump: Dump sections content Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` [PATCH v4 09/10] trace-cmd dump: Add new argument --sections Tzvetomir Stoyanov (VMware)
2021-11-11 15:12 ` Tzvetomir Stoyanov (VMware) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211111151250.87023-11-tz.stoyanov@gmail.com \
--to=tz.stoyanov@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).