IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37757


Ignore:
Timestamp:
Dec 18, 2014, 2:41:26 PM (12 years ago)
Author:
eugene
Message:

fix format for printing 64bit fields in 32bit kernel

Location:
branches/eam_branches/ipp-20140904/Ohana/src/dvopsps/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/dvopsps/src/insert_detections_dvopsps_catalog.c

    r37361 r37757  
    239239  }
    240240
    241   PrintIOBuffer (buffer, "(%lu, ", detection->objID);       // objID
    242   PrintIOBuffer (buffer,  "%lu, ", detection->detectID);    // detectID
    243   PrintIOBuffer (buffer,  "%lu, ", detection->ippObjID);    // ippObjID
     241  // XXX I needed OFF_T_FMT on my 32bit ubuntu laptop; ok on 64bit?
     242  PrintIOBuffer (buffer, "("OFF_T_FMT", ", detection->objID);       // objID
     243  PrintIOBuffer (buffer,  OFF_T_FMT", ", detection->detectID);    // detectID
     244  PrintIOBuffer (buffer,  OFF_T_FMT", ", detection->ippObjID);    // ippObjID
    244245  PrintIOBuffer (buffer,  "%u,  ", detection->ippDetectID); // ippDetectID
    245246  PrintIOBuffer (buffer,  "%d,  ", detection->imageID);     // imageID
  • branches/eam_branches/ipp-20140904/Ohana/src/dvopsps/src/insert_objects_dvopsps_catalog.c

    r37246 r37757  
    256256// XXX this bit could/should be autocoded...
    257257  PrintIOBuffer (ave_buffer, " (");
    258   PrintIOBuffer (ave_buffer, "%lu, ", average->extID);         
     258  PrintIOBuffer (ave_buffer, OFF_T_FMT", ", average->extID);         
    259259  PrintIOBuffer (ave_buffer, "%u,  ", average->objID);         
    260260  PrintIOBuffer (ave_buffer, "%u,  ", average->catID);         
Note: See TracChangeset for help on using the changeset viewer.