print_struct_statfs*: change address argument type from long to kernel_ureg_t
* defs.h (print_struct_statfs, print_struct_statfs64): Change address argument type from long to kernel_ureg_t. * print_statfs.c (print_struct_statfs, print_struct_statfs64): Likewise. * fetch_struct_statfs.c (fetch_struct_statfs, fetch_struct_statfs64): Likewise.
This commit is contained in:
parent
ce27e2acf4
commit
4e80a2087d
8
defs.h
8
defs.h
@ -694,8 +694,12 @@ struct strace_stat;
|
||||
extern void print_struct_stat(struct tcb *tcp, const struct strace_stat *const st);
|
||||
|
||||
struct strace_statfs;
|
||||
extern void print_struct_statfs(struct tcb *tcp, long);
|
||||
extern void print_struct_statfs64(struct tcb *tcp, long, unsigned long);
|
||||
|
||||
extern void
|
||||
print_struct_statfs(struct tcb *, kernel_ureg_t addr);
|
||||
|
||||
extern void
|
||||
print_struct_statfs64(struct tcb *, kernel_ureg_t addr, unsigned long size);
|
||||
|
||||
extern void print_ifindex(unsigned int);
|
||||
|
||||
|
@ -40,7 +40,8 @@ typedef struct statfs64 struct_statfs64;
|
||||
#include "statfs.h"
|
||||
|
||||
MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
|
||||
struct tcb *tcp, const long addr, struct strace_statfs *p)
|
||||
struct tcb *const tcp, const kernel_ureg_t addr,
|
||||
struct strace_statfs *const p)
|
||||
{
|
||||
struct_statfs b;
|
||||
|
||||
@ -78,8 +79,8 @@ MPERS_PRINTER_DECL(bool, fetch_struct_statfs,
|
||||
#endif
|
||||
|
||||
MPERS_PRINTER_DECL(bool, fetch_struct_statfs64,
|
||||
struct tcb *tcp, const long addr, const unsigned long size,
|
||||
struct strace_statfs *p)
|
||||
struct tcb *const tcp, const kernel_ureg_t addr,
|
||||
const unsigned long size, struct strace_statfs *const p)
|
||||
{
|
||||
struct_statfs64 b;
|
||||
|
||||
|
@ -56,7 +56,7 @@ print_statfs_number(const char *const prefix, const unsigned long long number)
|
||||
}
|
||||
|
||||
void
|
||||
print_struct_statfs(struct tcb *tcp, const long addr)
|
||||
print_struct_statfs(struct tcb *const tcp, const kernel_ureg_t addr)
|
||||
{
|
||||
#ifdef HAVE_STRUCT_STATFS
|
||||
struct strace_statfs b;
|
||||
@ -91,7 +91,8 @@ print_struct_statfs(struct tcb *tcp, const long addr)
|
||||
}
|
||||
|
||||
void
|
||||
print_struct_statfs64(struct tcb *tcp, const long addr, const unsigned long size)
|
||||
print_struct_statfs64(struct tcb *const tcp, const kernel_ureg_t addr,
|
||||
const unsigned long size)
|
||||
{
|
||||
#ifdef HAVE_STRUCT_STATFS64
|
||||
struct strace_statfs b;
|
||||
|
Loading…
Reference in New Issue
Block a user