diff mbox series

[2/8] show-mod: no ending space when showing a single modifier

Message ID 20200809165229.36677-3-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series simplify parsing of storage modifiers | expand

Commit Message

Luc Van Oostenryck Aug. 9, 2020, 4:52 p.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/parse.c b/parse.c
index cc5dbd522b3e..cc46f1a6c5a6 100644
--- a/parse.c
+++ b/parse.c
@@ -1151,7 +1151,7 @@  static struct token *attribute_aligned(struct token *token, struct symbol *attr,
 static void apply_mod(struct position *pos, unsigned long *mods, unsigned long mod)
 {
 	if (*mods & mod & ~MOD_DUP_OK)
-		warning(*pos, "duplicate %s", modifier_string(mod));
+		warning(*pos, "duplicate %s", modifier_name(mod));
 	*mods |= mod;
 }