logging - size check sprintf