Moving printf under cgnapt_dbg_print