Print correct variable in debug message. (cherry picked from commit…

Authored by lvsouza.