Extract debug flag into a variable.

Signed-off-by: Thiago Farina <tfarina@chromium.org>