Make tprint_iov function a static inline wrapper
* io.c (tprint_iov): Move ... * defs.h: ... here, add static inline keywords.
This commit is contained in:
parent
0c6f755525
commit
6caa97f543
8
defs.h
8
defs.h
@ -651,7 +651,6 @@ extern const char *sprintsigmask_n(const char *, const void *, unsigned int);
|
||||
#define tprintsigmask_addr(prefix, mask) \
|
||||
tprints(sprintsigmask_n((prefix), (mask), sizeof(mask)))
|
||||
extern void printsignal(int);
|
||||
extern void tprint_iov(struct tcb *, unsigned long, unsigned long, enum iov_decode);
|
||||
extern void tprint_iov_upto(struct tcb *, unsigned long, unsigned long,
|
||||
enum iov_decode, unsigned long);
|
||||
extern void decode_netlink(struct tcb *, unsigned long, unsigned long);
|
||||
@ -748,6 +747,13 @@ printxval_long(const struct xlat *x, const unsigned long val, const char *dflt)
|
||||
return printxvals(val, dflt, x, NULL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
tprint_iov(struct tcb *tcp, unsigned long len, unsigned long addr,
|
||||
enum iov_decode decode_iov)
|
||||
{
|
||||
tprint_iov_upto(tcp, len, addr, decode_iov, -1UL);
|
||||
}
|
||||
|
||||
#ifdef ALPHA
|
||||
typedef struct {
|
||||
int tv_sec, tv_usec;
|
||||
|
7
io.c
7
io.c
@ -122,13 +122,6 @@ tprint_iov_upto(struct tcb *tcp, unsigned long len, unsigned long addr,
|
||||
umoven_or_printaddr_ignore_syserror, print_iovec, &config);
|
||||
}
|
||||
|
||||
void
|
||||
tprint_iov(struct tcb *tcp, unsigned long len, unsigned long addr,
|
||||
enum iov_decode decode_iov)
|
||||
{
|
||||
tprint_iov_upto(tcp, len, addr, decode_iov, -1UL);
|
||||
}
|
||||
|
||||
SYS_FUNC(readv)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user