[PATCH dwarves] fprintf: reintroduce space after "const"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx>
---
 dwarves_fprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 				}
-- 
1.8.3.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux