Changeset 8320
- Timestamp:
- 02/01/21 13:49:53 (2 months ago)
- Location:
- trunk/src/archiving/tankplayer_tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/archiving/tankplayer_tools/remux_code.c
r8143 r8320 38 38 39 39 typedef struct _TBUF { 40 int offset; /* offset in bytes from beginning of input file */40 size_t offset; /* offset in bytes from beginning of input file */ 41 41 int size; /* length in bytes of this TRACEBUF2 message */ 42 42 double time; /* a time from the header of this TRACEBUF2 msg */ … … 68 68 char byte_order; /* byte order of this TYPE_TRACEBUF2 msg */ 69 69 int byte_per_sample; /* for TYPE_TRACEBUF2 msg */ 70 inttotbytes = 0; /* total # bytes read from file so far */70 size_t totbytes = 0; /* total # bytes read from file so far */ 71 71 int nbuf = 0; /* total # msgs read from file so far */ 72 72 int maxnumbuf; /* number of buffers we can store */ … … 129 129 { 130 130 logit( "et", "trex_tbuf: WaveMsg2MakeLocal() error.\n" ); 131 logit("e","tbuf: %4s %3s %2s %2s %13.2f+%4.2f %3d %3d %s %d at offset: % d\n",131 logit("e","tbuf: %4s %3s %2s %2s %13.2f+%4.2f %3d %3d %s %d at offset: %ld\n", 132 132 pkt.trh2.sta, pkt.trh2.chan, pkt.trh2.net, pkt.trh2.loc, 133 133 pkt.trh2.starttime, pkt.trh2.endtime-pkt.trh2.starttime, … … 136 136 if(rc == -1) 137 137 { 138 logit("et", "trex_tbuf: WaveMsg2MakeLocal() failed! Processor hopelessly lost at offset % d. quitting!\n",138 logit("et", "trex_tbuf: WaveMsg2MakeLocal() failed! Processor hopelessly lost at offset %ld. quitting!\n", 139 139 totbytes); 140 140 goto done; … … 220 220 != tbuf[ib].size ) 221 221 { 222 logit("et", "remux_tracebufs(): error reading input file at byte % d\n",222 logit("et", "remux_tracebufs(): error reading input file at byte %ld\n", 223 223 tbuf[ib].offset ); 224 224 goto done; -
trunk/src/archiving/tankplayer_tools/remux_tbuf.c
r7061 r8320 40 40 41 41 /* versioning added in the second incarnation which allows remux_tbuf to run without any EW_LOG var set */ 42 #define VERSION_NUMBER "0.0. 2 2012.12.07"42 #define VERSION_NUMBER "0.0.3 2021.02.01" 43 43 44 44 int main( int argc, char *argv[] ) {
Note: See TracChangeset
for help on using the changeset viewer.