WAILUKU — Saying he had been wrong to give a Makawao man a chance on probation three years ago, a judge sentenced the defendant Thursday to prison terms totaling 30 years for burglaries and theft.