sprandom: fix warning: comparison will always evaluate as true

The log_buf() macro checks whether the buffer is NULL, but in this
case the variable is defined on the stack and can never be NULL.

Use the low-level __log_buf() function to eliminate the warning.

Fixes the following warning with 32-bit build:
LDFLAGS="-m32" ./configure --disable-native --extra-cflags="-m32 -march=i386" && make

sprandom.c: In function ‘print_d_array’:
log.h:24:12: warning: the comparison will always evaluate as ‘true’ \
for the address of ‘out’ will never be NULL [-Waddress]
   if ((buf) != NULL)    \

Reported-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Tomas Winkler <tomas.winkler@sandisk.com>
1 file changed