log: use __log_buf() if we know buf != NULL
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Sep 2018 18:09:24 +0000 (12:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Sep 2018 18:09:24 +0000 (12:09 -0600)
commitc2fcb6bcecf0d4208154178de55d918d2a4abf61
tree06884173710fe637461de8eaae8a5c6c421875f8
parentfecea437a7272916e00228b99b74e05ee8e0c957
log: use __log_buf() if we know buf != NULL

This apparently causes complaints on cygwin:

    CC stat.o
In file included from os/os-windows.h:18:0,
                 from os/os.h:54,
                 from thread_options.h:5,
                 from fio.h:18,
                 from init.c:19:
init.c: In function ‘add_job’:
os/../log.h:24:12: error: the comparison will always evaluate as ‘true’ for the address of ‘out’ will never be NULL [-Werror=address]
  if ((buf) != NULL)    \
            ^
os/../log.h:24:12: note: in definition of macro ‘log_buf’
  if ((buf) != NULL)    \

which is utterly stupid, but hey...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
client.c