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:
Дмитрий Левин 2016-12-19 21:17:13 +00:00
parent 0c6f755525
commit 6caa97f543
2 changed files with 7 additions and 8 deletions

8
defs.h
View File

@ -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
View File

@ -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)) {