From af0e1c89df27f77f253e60a33d9a2e9484c86d07 Mon Sep 17 00:00:00 2001 From: edef Date: Sat, 30 Jul 2022 16:11:11 +0000 Subject: ripple/minitrace/maps_file: show both bounds of the backing range Change-Id: I2868f0583757f83b014ca8fa206029309c6ddd9d --- ripple/minitrace/src/maps_file.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ripple/minitrace') diff --git a/ripple/minitrace/src/maps_file.rs b/ripple/minitrace/src/maps_file.rs index af35bde..77601e6 100644 --- a/ripple/minitrace/src/maps_file.rs +++ b/ripple/minitrace/src/maps_file.rs @@ -158,9 +158,10 @@ impl Debug for Mapping { f.write_char(if shared { 's' } else { 'p' })?; f.write_char(' ')?; + let offset_end = self.offset + (self.end - self.start); write!( f, - "{offset:016x} {dev_maj:04x}:{dev_min:04x} {inode:20} {pathname}" + "{offset:016x}-{offset_end:016x} {dev_maj:04x}:{dev_min:04x} {inode:20} {pathname}" ) } } -- cgit 1.4.1