The formerly used format string %x led to misleading output as there was
no clear indication sometimes whether the printed integer was decimal or
hexadecimal.
* aio.c (print_common_flags): Print struct iocb.aio_flags using %#x
format specifier instead of %x.
* tests/aio.c (main): Likewise.
printfd(tcp, cb->aio_resfd);
}
if (cb->aio_flags & ~IOCB_FLAG_RESFD)
- tprintf(", flags=%x", cb->aio_flags);
+ tprintf(", flags=%#x", cb->aio_flags);
#endif
}
"{key=%u, pwrite, reqprio=%hd, fildes=%d, str=NULL"
", nbytes=%" PRI__u64 ", offset=%" PRI__d64
# ifdef IOCB_FLAG_RESFD
- ", resfd=%d, flags=%x"
+ ", resfd=%d, flags=%#x"
# endif
"}, "
"{key=%u, pwrite, reqprio=%hd, fildes=%d, buf=%#" PRI__x64