Skip to content

Commit b036afb

Browse files
pabigotcarlescufi
authored andcommitted
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 <[email protected]>
1 parent d12a995 commit b036afb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/os/cbprintf_complete.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ typedef uint32_t uint_value_type;
5454

5555
/* The allowed types of length modifier. */
5656
enum length_mod_enum {
57-
LENGTH_NONE,
58-
LENGTH_HH,
59-
LENGTH_H,
60-
LENGTH_L,
61-
LENGTH_LL,
62-
LENGTH_J,
63-
LENGTH_Z,
64-
LENGTH_T,
65-
LENGTH_UPPER_L,
57+
LENGTH_NONE, /* int */
58+
LENGTH_HH, /* char */
59+
LENGTH_H, /* short */
60+
LENGTH_L, /* long */
61+
LENGTH_LL, /* long long */
62+
LENGTH_J, /* intmax */
63+
LENGTH_Z, /* size_t */
64+
LENGTH_T, /* ptrdiff_t */
65+
LENGTH_UPPER_L, /* long double */
6666
};
6767

6868
/* Categories of conversion specifiers. */

0 commit comments

Comments
 (0)