Skip to content

Commit 4738173

Browse files
oyvindronningstadkartben
authored andcommitted
zcbor: Improve kconfig help text
ZCBOR_CANONICAL text was outdated. Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent 6894fce commit 4738173

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/zcbor/Kconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ config ZCBOR_CANONICAL
1616
bool "Produce canonical CBOR"
1717
help
1818
Enabling this will prevent zcbor from creating lists and maps with
19-
indefinite-length arrays (it will still decode them properly).
19+
indefinite-length arrays.
20+
Enabling this also enables the state->constant_state->enforce_canonical
21+
flag in all zcbor states. This flag controls validation of canonical
22+
data when decoding. If you only want canonical encoding, please set
23+
the enforce_canonical flag to false in all new state structs after
24+
initialization.
2025

2126
config ZCBOR_STOP_ON_ERROR
2227
bool "Stop on error when processing (Must also be enabled in state var)"
@@ -28,7 +33,7 @@ config ZCBOR_STOP_ON_ERROR
2833
has already happened.
2934

3035
config ZCBOR_VERBOSE
31-
bool "Make zcbor code print messages"
36+
bool "Make zcbor code print messages via printf"
3237

3338
config ZCBOR_ASSERT
3439
def_bool ASSERT

0 commit comments

Comments
 (0)