lib: cbprintf: document length modifiers

It may not be clear that the length modifiers reference native C types
with specific ranks.  Document the core type for each modifier.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-12-12 09:45:06 -06:00 committed by Carles Cufí
commit b036afba5a

View file

@ -54,15 +54,15 @@ typedef uint32_t uint_value_type;
/* The allowed types of length modifier. */ /* The allowed types of length modifier. */
enum length_mod_enum { enum length_mod_enum {
LENGTH_NONE, LENGTH_NONE, /* int */
LENGTH_HH, LENGTH_HH, /* char */
LENGTH_H, LENGTH_H, /* short */
LENGTH_L, LENGTH_L, /* long */
LENGTH_LL, LENGTH_LL, /* long long */
LENGTH_J, LENGTH_J, /* intmax */
LENGTH_Z, LENGTH_Z, /* size_t */
LENGTH_T, LENGTH_T, /* ptrdiff_t */
LENGTH_UPPER_L, LENGTH_UPPER_L, /* long double */
}; };
/* Categories of conversion specifiers. */ /* Categories of conversion specifiers. */