Fix warning in `xi_get_error_string()`

Signed-off-by: Hrishikesh Dhayagude <dhrishi@marvell.com>