tprints(", ");
print_numeric_umode_t(tcp->u_arg[2]);
tprints(", ");
- printmqattr(tcp, tcp->u_arg[3]);
+ printmqattr(tcp, tcp->u_arg[3], false);
}
return RVAL_DECODED;
}
{
tprintf("%d, ", (int) tcp->u_arg[0]);
printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
- tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]);
+ tprintf(", %llu, %u, ", getarg_ull(tcp, 2),
+ (unsigned int) tcp->u_arg[3]);
print_timespec(tcp, tcp->u_arg[4]);
return RVAL_DECODED;
}
if (entering(tcp)) {
tprintf("%d, ", (int) tcp->u_arg[0]);
} else {
- printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
- tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]);
+ if (!syserror(tcp) && (tcp->u_rval >= 0))
+ printstr(tcp, tcp->u_arg[1], tcp->u_rval);
+ else
+ printaddr(tcp->u_arg[1]);
+ tprintf(", %llu, ", getarg_ull(tcp, 2));
+ printnum_int(tcp, tcp->u_arg[3], "%u");
+ tprintf(", ");
/*
* Since the timeout parameter is read by the kernel
* on entering syscall, it has to be decoded the same way
{
if (entering(tcp)) {
tprintf("%d, ", (int) tcp->u_arg[0]);
- printmqattr(tcp, tcp->u_arg[1]);
+ printmqattr(tcp, tcp->u_arg[1], true);
tprints(", ");
} else {
- printmqattr(tcp, tcp->u_arg[2]);
+ printmqattr(tcp, tcp->u_arg[2], true);
}
return 0;
}