print size_t values with %zu

size_t is unsigned int on 32-bit systems such as Raspberry Pi OS, where %ld
gives -Wformat warnings and reads the wrong argument size. The translations
change along with the strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Philipp MundhenkandClaude Opus 5.5 authored and Dominic Radermacher committed 2026-11-14 19:01:25 +01:00
1 parent a137e1aee7
commit 657ef6673d
5 files changed
+15 -15

No files matched your search

+3 -3
View File
@@ -75,7 +75,7 @@ msgstr ""
#: src/libptouch.c:252
#, c-format
msgid "write error: could send only %i of %ld bytes\n"
msgid "write error: could send only %i of %zu bytes\n"
msgstr ""
#: src/libptouch.c:302
@@ -335,12 +335,12 @@ msgstr ""
#: src/ptouch-print.c:789
#, c-format
msgid "printer has %d dpi, maximum printing width is %ld px\n"
msgid "printer has %d dpi, maximum printing width is %zu px\n"
msgstr ""
#: src/ptouch-print.c:790
#, c-format
msgid "maximum printing width for this tape is %ldpx\n"
msgid "maximum printing width for this tape is %zupx\n"
msgstr ""
#: src/ptouch-print.c:815