IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2010, 5:35:25 PM (16 years ago)
Author:
eugene
Message:

update ohana formatting functions to check format and associated types; fixes derived from format checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/largefiles.20100314/Ohana/src/opihi/dvo/badimages.c

    r27305 r27368  
    3939    ptr = &image[entry].coords.crpix1;
    4040    for (i = 0; i < 22; i++) {
    41       gprint (GP_LOG, "%2d: %g\n", i, ptr[i]);
     41      gprint (GP_LOG, "%2lld: %g\n", (long long) i, ptr[i]);
    4242    }
    4343    value = image[entry].coords.pc1_1*image[entry].coords.pc2_2 + image[entry].coords.pc1_2*image[entry].coords.pc2_1;
     
    5858      value = image[i].coords.pc1_1*image[i].coords.pc2_2 + image[i].coords.pc1_2*image[i].coords.pc2_1;
    5959      if ((value > big) || (value < small)) {
    60         gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, value);
     60        gprint (GP_LOG, "%5lld %s: %d %g\n", (long long) i, image[i].name, image[i].tzero, value);
    6161      }
    6262    }
     
    6565      ptr = &image[i].coords.crpix1;
    6666      if ((ptr[entry] > big) || (ptr[entry] < small)) {
    67         gprint (GP_LOG, "%5d %s: %d %g\n", i, image[i].name, image[i].tzero, ptr[entry]);
     67        gprint (GP_LOG, "%5lld %s: %d %g\n", (long long) i, image[i].name, image[i].tzero, ptr[entry]);
    6868      }
    6969    }
Note: See TracChangeset for help on using the changeset viewer.