extern void printsignal(int);
extern void
-tprint_iov_upto(struct tcb *, unsigned long len, kernel_ureg_t addr,
- enum iov_decode, unsigned long data_size);
+tprint_iov_upto(struct tcb *, kernel_ureg_t len, kernel_ureg_t addr,
+ enum iov_decode, kernel_ureg_t data_size);
extern void
decode_netlink(struct tcb *, kernel_ureg_t addr, unsigned long len);
}
static inline void
-tprint_iov(struct tcb *tcp, unsigned long len, kernel_ureg_t addr,
+tprint_iov(struct tcb *tcp, kernel_ureg_t len, kernel_ureg_t addr,
enum iov_decode decode_iov)
{
- tprint_iov_upto(tcp, len, addr, decode_iov, -1UL);
+ tprint_iov_upto(tcp, len, addr, decode_iov, -1);
}
#ifdef ALPHA
struct print_iovec_config {
enum iov_decode decode_iov;
- unsigned long data_size;
+ kernel_ureg_t data_size;
};
static bool
print_iovec(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
{
- const unsigned long *iov;
- unsigned long iov_buf[2], len;
+ const kernel_ureg_t *iov;
+ kernel_ureg_t iov_buf[2], len;
struct print_iovec_config *c = data;
if (elem_size < sizeof(iov_buf)) {
case IOV_DECODE_STR:
if (len > c->data_size)
len = c->data_size;
- if (c->data_size != -1UL)
+ if (c->data_size != (kernel_ureg_t) -1)
c->data_size -= len;
printstrn(tcp, iov[0], len);
break;
case IOV_DECODE_NETLINK:
if (len > c->data_size)
len = c->data_size;
- if (c->data_size != -1UL)
+ if (c->data_size != (kernel_ureg_t) -1)
c->data_size -= len;
decode_netlink(tcp, iov[0], iov[1]);
break;
* Example: recvmsg returing a short read.
*/
void
-tprint_iov_upto(struct tcb *const tcp, const unsigned long len,
+tprint_iov_upto(struct tcb *const tcp, const kernel_ureg_t len,
const kernel_ureg_t addr, const enum iov_decode decode_iov,
- const unsigned long data_size)
+ const kernel_ureg_t data_size)
{
- unsigned long iov[2];
+ kernel_ureg_t iov[2];
struct print_iovec_config config =
{ .decode_iov = decode_iov, .data_size = data_size };