summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
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;
 			}