Black-hole thermodynamics in Lovelock gravity.