diff mbox series

[8/8] add support for "%Lx" (and "%Ls")

Message ID 20201005020002.1108-9-luc.vanoostenryck@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series format check tweaks | expand

Commit Message

Luc Van Oostenryck Oct. 5, 2020, 2 a.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 verify-format.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/verify-format.c b/verify-format.c
index b27440b87c6b..4b4730285237 100644
--- a/verify-format.c
+++ b/verify-format.c
@@ -168,6 +168,9 @@  static struct format_type *parse_printf_get_fmt(struct format_type *type,
 				szmod++;
 				ptr++;
 			}
+		} else if (*ptr == 'L') {
+			szmod++;
+			ptr++;
 		} else {
 			if (*ptr == 'h') { // short/char to int
 				szmod = -1;