gcc format warnings and 64 bits...
tridge at samba.anu.edu.au
Thu Sep 3 00:00:19 GMT 1998
> definition for gcc compiles. However, when
> printing a 64 bit long long size, you need
> to use the format "%lld" - which gcc complains
> bitterly about.
You can't use %lld, it is only supported by a small range of
I solved this in rsync by using %.0f and casting to double.
rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n",
(stats.total_written+stats.total_read)/(0.5 + (t-starttime)));
More information about the samba-technical