linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steffen Maier <maier@linux.ibm.com>
To: linux-btrace@vger.kernel.org
Subject: [PATCH 26/31] blkparse: treat sector as %llu for custom format like elsewhere in code
Date: Fri, 27 Apr 2018 13:07:33 +0000	[thread overview]
Message-ID: <20180427130738.102806-27-maier@linux.ibm.com> (raw)

blk_io_trace.sector is __u64.

Signed-off-by: Steffen Maier <maier@linux.ibm.com>
---
 blkparse_fmt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blkparse_fmt.c b/blkparse_fmt.c
index c110dad10b0b..818208808198 100644
--- a/blkparse_fmt.c
+++ b/blkparse_fmt.c
@@ -230,7 +230,8 @@ static void print_field(char *act, struct per_cpu_info *pci,
 		fprintf(ofp, strcat(format, "ld"), t->sequence);
 		break;
 	case 'S':
-		fprintf(ofp, strcat(format, "lu"), t->sector);
+		fprintf(ofp, strcat(format, "llu"),
+			(unsigned long long)t->sector);
 		break;
 	case 't':
 		sprintf(format, "%%0%dlu", has_w ? width : 9);
-- 
2.14.2


                 reply	other threads:[~2018-04-27 13:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20180427130738.102806-27-maier@linux.ibm.com \
    --to=maier@linux.ibm.com \
    --cc=linux-btrace@vger.kernel.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).