summary refs log tree commit diff
diff options
context:
space:
mode:
-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}"
 		)
 	}
 }