From de477abcaaabb1f9815cb63876637a47a95e7ac1 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Netto Date: Thu, 1 Sep 2022 10:02:30 -0300 Subject: Use '%z' instead of '%Z' on printf functions The Z modifier is a nonstandard synonymn for z (that predates z itself) and compiler might issue an warning for in invalid conversion specifier. Reviewed-by: Florian Weimer --- catgets/gencat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'catgets/gencat.c') diff --git a/catgets/gencat.c b/catgets/gencat.c index cebf1fd435..dec4d936a7 100644 --- a/catgets/gencat.c +++ b/catgets/gencat.c @@ -1033,7 +1033,7 @@ write_out (struct catalog *catalog, const char *output_name, /* If the current message set has a symbolic name write this out first. */ if (set_run->symbol != NULL) - fprintf (fp, "%s#define %sSet %#x\t/* %s:%Zu */\n", + fprintf (fp, "%s#define %sSet %#x\t/* %s:%zu */\n", first ? "" : "\n", set_run->symbol, set_run->number - 1, set_run->fname, set_run->line); first = 0; @@ -1047,12 +1047,12 @@ write_out (struct catalog *catalog, const char *output_name, if (message_run->symbol != NULL) { if (set_run->symbol == NULL) - fprintf (fp, "#define AutomaticSet%d%s %#x\t/* %s:%Zu */\n", + fprintf (fp, "#define AutomaticSet%d%s %#x\t/* %s:%zu */\n", set_run->number, message_run->symbol, message_run->number, message_run->fname, message_run->line); else - fprintf (fp, "#define %s%s %#x\t/* %s:%Zu */\n", + fprintf (fp, "#define %s%s %#x\t/* %s:%zu */\n", set_run->symbol, message_run->symbol, message_run->number, message_run->fname, message_run->line); -- cgit 1.4.1