Standardize the printf format for st_size

Started by Peter Eisentrautover 5 years ago1 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Existing code uses various inconsistent ways to printf struct stat's
st_size member. The type of that is off_t, which is in most cases a
signed 64-bit integer, so use the long long int format for it.

I don't think anything is affected by this in practice, but it seems
reasonable to set a good convention for the next time this code gets copied.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

0001-Standardize-the-printf-format-for-st_size.patchtext/plain; charset=UTF-8; name=0001-Standardize-the-printf-format-for-st_size.patch; x-mac-creator=0; x-mac-type=0Download+18-19