summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-07-30 16:11:11 +0000
committeredef <edef@unfathomable.blue>2022-07-30 16:11:11 +0000
commitaf0e1c89df27f77f253e60a33d9a2e9484c86d07 (patch)
tree05093766f286dc0b67a437988b3531a9671c43c5 /ripple
parent9465bb5bf1d3b80aabf1b3a26f95aa0b6fcb4529 (diff)
downloadunf-legacy-af0e1c89df27f77f253e60a33d9a2e9484c86d07.tar.zst
ripple/minitrace/maps_file: show both bounds of the backing range
Change-Id: I2868f0583757f83b014ca8fa206029309c6ddd9d
Diffstat (limited to 'ripple')
-rw-r--r--ripple/minitrace/src/maps_file.rs3
1 files changed, 2 insertions, 1 deletions
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}"
 		)
 	}
 }