summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-07-29 16:06:40 +0000
committeredef <edef@unfathomable.blue>2022-07-29 16:06:40 +0000
commitebb4243206106a04377c59fe5c57188113d2b078 (patch)
tree3aa680c2824094ef3f92eda09b8990abed0bd3d9 /ripple
parentc637a65c0d239bb71e3d4db58d6221c6a09583c1 (diff)
downloadunf-legacy-ebb4243206106a04377c59fe5c57188113d2b078.tar.zst
ripple/minitrace: match read_mem_cstr return value names to input names
Change-Id: I93538f4fd3daa4065d70fa3d4d9f638d83093f7b
Diffstat (limited to 'ripple')
-rw-r--r--ripple/minitrace/src/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index 1c82e2d..5ec1831 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -428,9 +428,9 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 				return false;
 			}
 
-			let pathname = process.read_mem_cstr(filename as u64).unwrap();
+			let filename = process.read_mem_cstr(filename as u64).unwrap();
 
-			println!("openat(AT_FDCWD, {:?}, {:?}, ..)", pathname, flags);
+			println!("openat(AT_FDCWD, {:?}, {:?}, ..)", filename, flags);
 		}
 		SyscallEntry::newfstatat {
 			dfd,
@@ -438,11 +438,11 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 			statbuf: _,
 			flags: _,
 		} => {
-			let pathname = process.read_mem_cstr(filename as u64).unwrap();
+			let filename = process.read_mem_cstr(filename as u64).unwrap();
 			if dfd == AT_FDCWD {
-				println!("newfstatat(AT_FDCWD, {pathname:?}, ..)");
-			} else if pathname.as_bytes() == b"" {
-				println!("newfstatat({dfd}, {pathname:?})");
+				println!("newfstatat(AT_FDCWD, {filename:?}, ..)");
+			} else if filename.as_bytes() == b"" {
+				println!("newfstatat({dfd}, {filename:?})");
 			} else {
 				return false;
 			}