Skip to content

Commit dad9b5a

Browse files
Zhangshoukuixiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent ed5ca1c commit dad9b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/drivertest/drivertest_i2c_write.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ static FAR void *slave_read_thread(FAR void *arg)
249249
if (rfds.revents == POLLIN)
250250
{
251251
size = read(rfds.fd, buffer, sizeof(buffer));
252-
printf("slave size %d", size);
252+
printf("read size = %d\n", size);
253+
assert(size == SIZE_OF_BUFFER);
253254
printf("slave poll read \t");
254255
for (i = 0; i < SIZE_OF_BUFFER; i++)
255256
{

0 commit comments

Comments
 (0)