Introduce socket_nbd_write_hello() and a macro to display errno results nicely
This commit is contained in:
@@ -148,6 +148,7 @@ void mylog(int line_level, const char* format, ...);
|
||||
|
||||
#define NULLCHECK(value) FATAL_IF_NULL(value, "BUG: " #value " is null")
|
||||
|
||||
#define SHOW_ERRNO( msg ) msg ": %s (%i)", ( errno == 0 ? "EOF" : strerror(errno) ), errno
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user