]> granicus.if.org Git - strace/blobdiff - membarrier.c
Introduce generic STRINGIFY and STRINGIFY_VAL macros
[strace] / membarrier.c
index 485c62a5a9b5604d3bd55682a418692d8b81c1a3..1c064c29e96efe2215d418d4792d3d6ec61ad4a2 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * 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
@@ -43,6 +44,7 @@ SYS_FUNC(membarrier)
        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;
 }