Skip to content

Commit

Permalink
turning on logging in CI (#275)
Browse files Browse the repository at this point in the history
* turning on logging in CI

* fixed logging
  • Loading branch information
edwardhartnett authored Aug 18, 2022
1 parent 20633f7 commit 2aadbcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/pngunpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 2aadbcf

Please sign in to comment.