Local man with long criminal history going to prison