Skip to content
Commit 019a1e13 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

cbprintf_packaged: code cleanups



- Abstract buffer offset computation for better code clarity.

- Rework the logic around rw/ro strings to simplify the logic and
  to guard against overflows even when only computing the needed buffer
  size.

- Use modulus to simplify alignment tests (generated assembly is
  the same).

- Avoid CBPRINTF_ prefixes for local macro names

- Better pointer types to reduce cast usage.

- Add more comments.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent f08c44de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment