DBG_c: print -1 when not index found