From ebb4243206106a04377c59fe5c57188113d2b078 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 29 Jul 2022 16:06:40 +0000 Subject: ripple/minitrace: match read_mem_cstr return value names to input names Change-Id: I93538f4fd3daa4065d70fa3d4d9f638d83093f7b --- ripple/minitrace/src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ripple/minitrace') 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; } -- cgit 1.4.1