Skip to contentSkip to conversation

fprintf: reintroduce space after "const"

PATCH New Alan Maguire 1 participant 1 message Mar 13, 2023 BPF

lore
Share & tools
lore
#0 lore raw

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 */
            ...
    };
---
 dwarves_fprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dwarves_fprintf.c +1 -1
index c2fdcda..e8399e7 100644
@@ -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