(procfs_ttyname): Fix sprintf format to match argument