Use %"IVdf" instead of %zd.