On Saturday 06 April 2013, Stefan Fritsch wrote: > That wasn't clear from Miod's response. So the policy is to assume > that char/short/int/long long are 8/16/32/64 bits and that intptr_t > is long? Should that be added to style(9), then?
I assume that the lack of a response means yes. The patches at http://www.sfritsch.de/~stf/openbsd-format-string/ fix all warnings on i386 and do not cause new warnings on amd64. Since the kernel's printf does not support %td for ptrdiff_t, I have used %ld instead. %zd would also work. Is there a preferred way?