Put smap debug under ifdef