/*
* Copyright (c) 2001 Wichert Akkerman <wichert@deephackmode.org>
* Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2017 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
SYS_FUNC(sysmips)
{
- printxval(sysmips_operations, tcp->u_arg[0], "???");
+ printxval64(sysmips_operations, tcp->u_arg[0], "???");
tprints(", ");
switch (tcp->u_arg[0]) {
nodename) < 0) {
printaddr(tcp->u_arg[1]);
} else {
- print_quoted_string(nodename, __NEW_UTS_LEN + 1,
- QUOTE_0_TERMINATED);
+ print_quoted_cstring(nodename, __NEW_UTS_LEN + 1);
}
return RVAL_DECODED;
}
case MIPS_ATOMIC_SET:
- tprintf("%#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
+ printaddr(tcp->u_arg[1]);
+ tprintf(", %#" PRI_klx, tcp->u_arg[2]);
return RVAL_DECODED;
case MIPS_FIXADE:
- tprintf("0x%lx", tcp->u_arg[1]);
+ tprintf("%#" PRI_klx, tcp->u_arg[1]);
return RVAL_DECODED;
}
- tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
+ tprintf("%" PRI_kld ", %" PRI_kld ", %" PRI_kld,
+ tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
return RVAL_DECODED;
}