fprintf: reintroduce space after "const"
PATCH 1/1 fprintf: reintroduce space after "const"
Commmit
2a0b8d7bc7e5 (fprintf: Support skipping modifier)
mistakenly missed out the space after the "const" prefix, resulting in output like
struct ZSTD_inBuffer_s {
constvoid * src; /* 0 8 */
...
};Reported-by Eduard Zingerman <[email protected]>
Signed-off-by Alan Maguire <[email protected]>
--- dwarves_fprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dwarves_fprintf.c +1 -1
@@ -584,7 +584,7 @@ static const char *__tag__name(const struct tag *tag, const struct cu *cu,if (!pconf->skip_emitting_modifier) {switch (tag->tag) {case DW_TAG_volatile_type: prefix ="volatile " ;break ; -case DW_TAG_const_type: prefix ="const" ;break ; +case DW_TAG_const_type: prefix ="const " ;break ;case DW_TAG_restrict_type: suffix =" restrict" ;break ;case DW_TAG_atomic_type: prefix ="_Atomic " ;break ; }
Signature · 1 line
1.8.3.1