From dad9b5afa32394e227e833981539d935bdee9a0d Mon Sep 17 00:00:00 2001 From: Shoukui Zhang Date: Tue, 14 May 2024 16:02:17 +0800 Subject: [PATCH] drivertest: Modify output format before: slave size 4slave poll read 0 1 2 3 master write 0 1 2 3 now: read size = 4 slave poll read 0 1 2 3 master write 0 1 2 3 Signed-off-by: Shoukui Zhang --- testing/drivertest/drivertest_i2c_write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/drivertest/drivertest_i2c_write.c b/testing/drivertest/drivertest_i2c_write.c index 3d64d6cc0..ba2193964 100644 --- a/testing/drivertest/drivertest_i2c_write.c +++ b/testing/drivertest/drivertest_i2c_write.c @@ -249,7 +249,8 @@ static FAR void *slave_read_thread(FAR void *arg) if (rfds.revents == POLLIN) { size = read(rfds.fd, buffer, sizeof(buffer)); - printf("slave size %d", size); + printf("read size = %d\n", size); + assert(size == SIZE_OF_BUFFER); printf("slave poll read \t"); for (i = 0; i < SIZE_OF_BUFFER; i++) {