engines/sg: Make I/O error messages more informative
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:45:54 +0000 (13:45 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:50:23 +0000 (13:50 -0700)
commitc9aeb7971b454775523dd5a08a634d76426b7452
tree8d81ba113a3394641e0abf69c71b33289af25877
parent196ce5d5ff76af30cf93fd24240f12d8c4d24381
engines/sg: Make I/O error messages more informative

Ensure that if an I/O error is encountered that not only the error
number but also a textual error message and the engine name are
reported. Without this patch, SG error messages look like this:

fio: pid=12803, err=5/

With this patch applied SG I/O error messages change into:

fio: pid=12803, err=5/file:engines/sg.c:290, func=fio_sgio_doio, error=Input/output error

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
engines/sg.c