Ahaggar: fix an infinite loop bug and print call function name

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>