svn commit: samba r3869 - in branches/SAMBA_4_0/source: build/pidl include librpc/ndr

tridge at samba.org tridge at samba.org
Sun Nov 21 02:56:59 GMT 2004


Metze,

 >  void ndr_print_uint64(struct ndr_print *ndr, const char *name, uint64_t v)
 >  {
 > -	ndr->print(ndr, "%-25s: 0x%08x%08x", name, (uint32_t)(v >> 32), (uint32_t)(v & 0xFFFFFFFF));
 > +	ndr->print(ndr, "%-25s: 0x%08x%08x (%llu)", name,
 > +		   (uint32_t)(v >> 32),
 > +		   (uint32_t)(v & 0xFFFFFFFF),
 > +		   v);
 >  }

The %llu printf format is not portable. The closest portable
equivalent is to use %.0f and a cast to double.

Cheers, Tridge


More information about the samba-technical mailing list