Skip to content

Commit

Permalink
tests/subsys/logging/log_backend_uart: Reduce printf size
Browse files Browse the repository at this point in the history
When using picolibc before 1.8.5, the only way to get 'long long' support
was to use the full version, including floating point support. This is too
large for this testcase.

Reduce the size of the printf code by switching to the version without
64-bit integer support. This allows the test to pass when using older
picolibc versions, such as that included with SDK version 0.16.3.

Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
keith-packard authored and henrikbrixandersen committed Nov 21, 2023
1 parent aedefd4 commit 1dc6279
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/subsys/logging/log_backend_uart/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ common:
tests:
logging.backend.uart.single:
extra_args: DTC_OVERLAY_FILE="./single.overlay"
extra_configs:
- CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
logging.backend.uart.multi:
extra_args: DTC_OVERLAY_FILE="./multi.overlay"
extra_configs:
- CONFIG_CBPRINTF_REDUCED_INTEGRAL=y

0 comments on commit 1dc6279

Please sign in to comment.