Remove unnecessary casts in printf format arguments

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Remove unnecessary casts in printf format arguments
Date: 2025-12-04 12:19:07
Message-ID: 07fa29f9-42d7-4aac-8834-197918cbbab6@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Attached are some patches to remove unnecessary casts in printf format
arguments. Many of these are apparently left over from before use of
%zu/%zd and PRIu64/PRId64 were possible. Additionally, there are a few
where the cast just cast to the type the input already had, or it just
uselessly cast to a different type instead of using the right format
argument.

Attachment Content-Type Size
0001-Remove-unnecessary-casts-in-printf-format-arguments-.patch text/plain 25.2 KB
0002-Clean-up-int64-related-format-strings.patch text/plain 5.0 KB
0003-Remove-useless-casts-in-format-arguments.patch text/plain 23.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Banck 2025-12-04 12:29:43 Re: How can end users know the cause of LR slot sync delays?
Previous Message Shlok Kyal 2025-12-04 11:50:54 Re: Skipping schema changes in publication