Introduce socket_nbd_write_hello() and a macro to display errno results nicely

This commit is contained in:
nick
2013-02-08 15:53:27 +00:00
parent 56ce7d35c2
commit ecfd108a53
3 changed files with 21 additions and 0 deletions

View File

@@ -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