xen/swiotlb: Move the error strings to its own function.