Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: logging: log_backend_uart: fix build error #75595

Commits on Jul 8, 2024

  1. tests: logging: fix build error

    Currently we get the build error when building
    'tests/subsys/logging/log_backend_uart':
    
    error: static_assert expression is not an integral constant expression
    BUILD_ASSERT(strlen(TEST_DATA) < SAMPLE_DATA_SIZE);
    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    It can be easily workarounded by using sizeof instead of strlen
    to calculate string size.
    
    Signed-off-by: Evgeniy Paltsev <[email protected]>
    Signed-off-by: Eugeniy Paltsev <[email protected]>
    evgeniy-paltsev committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    01572f3 View commit details
    Browse the repository at this point in the history