Minor code duplicatation removal.
Fixing printf arg mismatch