Phimosis.

Phimosis.
The penis was trapped in the prepuce by foreign (hay bedding) material, which has also caused irritation, inflammation, and infection, leading to a preputial discharge. The boar was unable to retract the penis, leaving it exposed.

Evans LE (2009)