Description | Some parts of the driver (e.g. comm.c, ERQ daemon) use switch(errno) to convert errno to some error message. Some don't even bother with that at just output the plain errno (e.g. swap.c).
I suggest to use strerror(errno) in the long run for this. It is easier and probably more portable. It could ease debugging, because if someone reports 'errno 104' in a bug report, it has no real meaning in itself. One has to look up the 104 in /usr/include/*/errno.h on the same system the error occurred. (E.g. ECONNRESET is 104 on Linux, but 54 on MacOS X/Darwin).
|
---|