Deal with to_print == None
ident_to_print defined in all cases