An Austell man convicted of whipping a toddler’s genitals will serve five years in prison, a Cobb County judge ruled Thursday.

A Cobb County jury on Wednesday found Andrew Charles Pride guilty of first-degree child cruelty for repeatedly beating the 22-month-old boy who resisted efforts at potty training.

“This wasn’t an accident,” Assistant Cobb County district attorney Chuck Boring said during the trial. “This was malicious.”

The August 2012 abuse caused bleeding and welt marks, prosecutors said.

In addition to the five-year prison term, the minimum jail term that could have been as much as 20 years, Pride must serve 15 years on probation and have no unsupervised contact with minors, according to court officials.

Authorities did not disclose the relationship between Pride and the child.