[PATCH 6/8] futex: Avoid printing val2 when it is not used by the command

Eugene Syromyatnikov evgsyr at gmail.com
Mon Aug 29 15:14:17 UTC 2016


Analogous to timeout argument omitting in FUTEX_WAKE_BITSET command.

* futex.c (SYS_FUNC(futex)) <FUTEX_REQUEUE, FUTEX_CMP_REQUEUE,
  FUTEX_CMP_REQUEUE_PI>: Remove val2 argument printing.
---
 futex.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/futex.c b/futex.c
index 1418c89..a49677a 100644
--- a/futex.c
+++ b/futex.c
@@ -75,12 +75,12 @@ SYS_FUNC(futex)
 		tprintf(", %#x", val3);
 		break;
 	case FUTEX_REQUEUE:
-		tprintf(", %u, ", val2);
+		tprints(", ");
 		printaddr(uaddr2);
 		break;
 	case FUTEX_CMP_REQUEUE:
 	case FUTEX_CMP_REQUEUE_PI:
-		tprintf(", %u, ", val2);
+		tprints(", ");
 		printaddr(uaddr2);
 		tprintf(", %u", val3);
 		break;
-- 
1.7.10.4





More information about the Strace-devel mailing list