const correctness, %d format -> %ld