r2248: Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4.