[PATCH] Add support for Altera's Nios-II softcore architecture
Dmitry V. Levin
ldv at altlinux.org
Tue Feb 4 23:01:52 UTC 2014
On Sun, Jan 26, 2014 at 09:59:07PM -0300, Ezequiel Garcia wrote:
> +/* Nios-II specific compare and exchange syscall for atomic operations */
> +int sys_nios2cmpxchg(struct tcb *tcp)
> +{
> + if (entering(tcp)) {
> + tprintf(", 0x%lx, %#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1],
> + tcp->u_arg[2]);
> + }
> +
> + return RVAL_HEX;
> +}
This is confusing:
- output starts with ", ";
- both 0x%lx and %#lx are used in the same format line.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140205/5dd12e7b/attachment.bin>
More information about the Strace-devel
mailing list