debug ck_write

This commit is contained in:
vanhauser-thc
2021-06-01 11:00:56 +02:00
parent 5f6ff95e6a
commit 8017f88614

View File

@ -362,7 +362,12 @@ static inline const char *colorfilter(const char *x) {
\
s32 _len = (s32)(len); \
s32 _res = write(_fd, (buf), _len); \
if (_res != _len) RPFATAL(_res, "Short write to %s, fd %d", fn, _fd); \
if (_res != _len) { \
\
RPFATAL(_res, "Short write to %s, fd %d (%d of %d bytes)", fn, _fd, \
_res, _len); \
\
} \
\
} while (0)