[PATCH 26/31] blkparse: treat sector as %llu for custom format like elsewhere in code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



blk_io_trace.sector is __u64.

Signed-off-by: Steffen Maier <maier@xxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux