[PATCH v2 2/5] tests/futex: Increase static sprintrc buffer size

Eugene Syromyatnikov evgsyr at gmail.com
Fri Sep 2 15:25:56 UTC 2016


* tests/futex.c (sprintrc) <RES_BUF_SIZE>: Value increased from 256 to
  4096.
---
 tests/futex.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/futex.c b/tests/futex.c
index fe3741a..28d9df8 100644
--- a/tests/futex.c
+++ b/tests/futex.c
@@ -145,8 +145,7 @@ void invalid_op(int *val, int op, uint32_t argmask, ...)
 
 const char *sprintrc(long rc)
 {
-	enum { RES_BUF_SIZE = 256 };
-	static char buf[RES_BUF_SIZE];
+	static char buf[4096];
 
 	if (rc == 0)
 		return "0";
-- 
1.7.10.4





More information about the Strace-devel mailing list