examples/i2schar: Fix compile error and warning

Fix compile error due to unnecessary endif.
Fix warning of long line.
This commit is contained in:
Tiago Medicci Serrano 2022-09-28 11:32:37 -03:00 committed by Xiang Xiao
parent 1b99543e8d
commit 66f957792f
2 changed files with 2 additions and 4 deletions

View File

@ -212,7 +212,6 @@ static void parse_args(FAR struct i2schar_state_s *i2schar,
} }
} }
} }
#endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions

View File

@ -109,9 +109,8 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
ret = apb_alloc(&desc); ret = apb_alloc(&desc);
if (ret < 0) if (ret < 0)
{ {
printf(" printf("i2schar_transmitter:"
i2schar_transmitter: ERROR: failed to allocate buffer %d: %d\n", "ERROR: failed to allocate buffer %d: %d\n", i + 1, ret);
i + 1, ret);
close(fd); close(fd);
pthread_exit(NULL); pthread_exit(NULL);
} }