Standardize the printf format for st_size

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Standardize the printf format for st_size

Peter Eisentraut-6
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

0001-Standardize-the-printf-format-for-st_size.patch (6K) Download Attachment