Use %zu instead of %ld

OTS review by @mlucy