Skip to contentSkip to conversation

test/read-write: fixed output, and added 'nonvec', when VERBOSE

PATCH Applied Simon A. F. Lund 2 participants 2 messages Jan 28, 2020 1 message not in the archive io_uring

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20200128132022eucas1p1e94fc561550c26d2c880282fd9ad9c62@eucas1p1.samsung.com

#1 lore raw

PATCH 1/1 test/read-write: fixed output, and added 'nonvec', when VERBOSE

---
 test/read-write.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
test/read-write.c +4 -3
index face66b..64f8fd5 100644
@@ -62,9 +62,10 @@ static int test_io(const char *file, int write, int buffered, int sqthread,
 	static int warned;
 
 #ifdef VERBOSE
-	fprintf(stdout, "%s: start %d/%d/%d/%d/%d: ", __FUNCTION__, write,
+	fprintf(stdout, "%s: start %d/%d/%d/%d/%d/%d: ", __FUNCTION__, write,
 							buffered, sqthread,
-							fixed, mixed_fixed);
+							fixed, mixed_fixed,
+							nonvec);
 #endif
 	if (sqthread && geteuid()) {
 #ifdef VERBOSE
@@ -212,7 +213,7 @@ static int test_io(const char *file, int write, int buffered, int sqthread,
 	return 0;
 err:
 #ifdef VERBOSE
-	print("FAILED\n");
+	printf("FAILED\n");
 #endif
 	if (fd != -1)
 		close(fd);
Signature · 1 line
2.20.1
maintainer Applied
#2 lore raw
Quoted 23 lines · Simon A. F. Lund
---
 test/read-write.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
test/read-write.c +3 -2
index face66b..64f8fd5 100644
@@ -62,9 +62,10 @@ static int test_io(const char *file, int write, int buffered, int sqthread,
 	static int warned;
 
 #ifdef VERBOSE
-	fprintf(stdout, "%s: start %d/%d/%d/%d/%d: ", __FUNCTION__, write,
+	fprintf(stdout, "%s: start %d/%d/%d/%d/%d/%d: ", __FUNCTION__, write,
 							buffered, sqthread,
-							fixed, mixed_fixed);
+							fixed, mixed_fixed,
+							nonvec);
 #endif
 	if (sqthread && geteuid()) {
 #ifdef VERBOSE

test/read-write.c static int test_io(const char *file, int write, int buffered, int sqthread, · line 219

Quoted 8 lines
test/read-write.c +1 -1
@@ -212,7 +213,7 @@ static int test_io(const char *file, int write, int buffered, int sqthread,
 	return 0;
 err:
 #ifdef VERBOSE
-	print("FAILED\n");
+	printf("FAILED\n");
 #endif
 	if (fd != -1)
 		close(fd);

Applied, thanks.

Signature · 1 line
Jens Axboe