Message ID | 1678736742-6197-1-git-send-email-alan.maguire@oracle.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | BPF |
Headers | show |
Series | [dwarves] fprintf: reintroduce space after "const" | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index c2fdcda..e8399e7 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -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; }
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 <eddyz87@gmail.com> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> --- dwarves_fprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)