diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 07c1c927..89dd6b4a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -52,7 +52,7 @@ jobs: cd g2c mkdir build cd build - cmake -DJasper_ROOT=~/Jasper -DENABLE_DOCS=On -DENABLE_OpenJPEG=ON -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall -Werror" .. + cmake -DJasper_ROOT=~/Jasper -DLOGGING=On -DENABLE_DOCS=On -DENABLE_OpenJPEG=ON -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -fsanitize=address -Wall -Werror" .. make -j2 - name: test diff --git a/src/pngunpack.c b/src/pngunpack.c index 4d5c4568..991a959e 100644 --- a/src/pngunpack.c +++ b/src/pngunpack.c @@ -39,13 +39,13 @@ pngunpack_int(unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, float *ffld = fld; double *dfld = fld; - LOG(("pngunpack_int len %ld ndpts %ld fld_is_double %d", len, ndpts, fld_is_double)); + LOG((2, "pngunpack_int len %ld ndpts %ld fld_is_double %d", len, ndpts, fld_is_double)); rdieee(idrstmpl, &ref, 1); bscale = int_power(2.0, idrstmpl[1]); dscale = int_power(10.0, -idrstmpl[2]); nbits = idrstmpl[3]; - LOG(("bscale %g dscale %g nbits %ld", bscale, dscale, nbits)); + LOG((2, "bscale %g dscale %g nbits %ld", bscale, dscale, nbits)); /* If nbits equals 0, we have a constant field where the reference * value is the data value at each gridpoint. */