Changeset 32015
- Timestamp:
- Aug 3, 2011, 4:00:44 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/tools/src/roc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/tools/src/roc.c
r30607 r32015 198 198 199 199 target = fopen(targetName, "r"); 200 myAssert (target, "failed to open output");200 myAssert (target, "failed to open rocfile"); 201 201 202 202 ALLOCATE (line, char, 1024); … … 368 368 for (i = 0; i < Ninput; i++) { 369 369 input[i] = fopen(inputName[i], "r"); 370 myAssert (input[i], "failed to open file %s in %s\n",inputName[i],targetName);370 myAssert (input[i], "failed to open input: %d data file: %s in %s\n",i,inputName[i],targetName); 371 371 } 372 372 … … 381 381 Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]); 382 382 Nbytes = fread (inputData[i], 1, Nread, input[i]); 383 myAssert (Nbytes == Nread, "failed to read data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);383 myAssert (Nbytes == Nread, "failed to read input: %d data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",i,inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName); 384 384 if (Nread < ROC_BLOCKSIZE) { 385 385 // if we have reached the end of the file, fill in the rest with NULLs … … 442 442 fprintf (stderr, "USAGE: roc [mode]\n"); 443 443 fprintf (stderr, " -create (target) (input) (input) (input) ... [options]\n"); 444 fprintf (stderr, " -repair (target) (file #) (output \n");444 fprintf (stderr, " -repair (target) (file #) (output)\n"); 445 445 fprintf (stderr, " -validate (target)\n"); 446 446 fprintf (stderr, " -insert (target) (input)\n");
Note:
See TracChangeset
for help on using the changeset viewer.
