/*
* Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2015-2017 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
if (syserror(tcp) || !tcp->u_rval)
return 0;
- tcp->auxstr = sprintflags("", membarrier_cmds, tcp->u_rval);
+ tcp->auxstr = sprintflags("", membarrier_cmds,
+ (kernel_ulong_t) tcp->u_rval);
return RVAL_HEX | RVAL_STR;
}