| commit | 019a1e13f4ee96791cf3cd10753b66bb81b57f2d | [log] [tgz] |
|---|---|---|
| author | Nicolas Pitre <npitre@baylibre.com> | Sat Dec 18 20:05:11 2021 -0500 |
| committer | Anas Nashif <anas.nashif@intel.com> | Thu Jan 20 08:21:33 2022 -0500 |
| tree | 65ea480689c8d2cfba9c01aa4214d7ef4c379667 | |
| parent | f08c44def5fc56f7724664acc6b2e2291911f457 [diff] |
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: Nicolas Pitre <npitre@baylibre.com>