Skip to content

Commit

Permalink
style(frontend): inline formatting arguments for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Mar 25, 2024
1 parent 3d1733f commit 0824702
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions rftrace-frontend/src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,10 @@ pub fn dump_full_uftrace(events: &mut Events, out_dir: &str, binary_name: &str)
let mut procfile = File::open("/proc/self/maps")?;
io::copy(&mut procfile, &mut mapfile)?;
} else {
println!(" Creating ./sid-{}.map fake memory map file", sid);

writeln!(
mapfile,
"000000000000-ffffffffffff r-xp 00000000 00:00 0 {}",
binary_name
)?;
writeln!(
mapfile,
"ffffffffffff-ffffffffffff rw-p 00000000 00:00 0 [stack]"
)?;
println!(" Creating ./sid-{sid}.map fake memory map file");

writeln!(mapfile, "000000000000-ffffffffffff r-xp 00000000 00:00 0 {binary_name}")?;
writeln!(mapfile, "ffffffffffff-ffffffffffff rw-p 00000000 00:00 0 [stack]")?;
}
}

Expand Down

0 comments on commit 0824702

Please sign in to comment.