text: Fix bug in debug macro

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>