IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30252


Ignore:
Timestamp:
Jan 12, 2011, 4:15:13 PM (15 years ago)
Author:
watersc1
Message:

tell which roc file is invalid when an error is found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/Ohana/src/tools/src/roc.c

    r30237 r30252  
    318318
    319319  scan_line (target, line);
    320   myAssert (!strncmp(line, "ROC Version 0", strlen("ROC Verion 0")), "invalid ROC file or format");
     320  myAssert (!strncmp(line, "ROC Version 0", strlen("ROC Verion 0")), "invalid ROC file or format in %s",targetName);
    321321
    322322  scan_line (target, line);
     
    352352  for (i = 0; i < Ninput; i++) {
    353353    input[i] = fopen(inputName[i], "r");
    354     myAssert (input[i], "failed to open file %s\n",inputName[i]);
     354    myAssert (input[i], "failed to open file %s in %s\n",inputName[i],targetName);
    355355  }
    356356
     
    365365      Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]);
    366366      Nbytes = fread (inputData[i], 1, Nread, input[i]);
    367       myAssert (Nbytes == Nread, "failed to read data file: %s read: %d expect: %d prev_read: %d block: %d\n",inputName[i],Nbytes,Nread,(int) bytes_read[i],n);
     367      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);
    368368      if (Nread < ROC_BLOCKSIZE) {
    369369        // if we have reached the end of the file, fill in the rest with NULLs
     
    379379        value = value ^ inputData[i][j];
    380380      }
    381       myAssert(value == 0, "validation failed on block %d and byte %d\n",n,j);
     381      myAssert(value == 0, "validation failed on block %d and byte %d in %s\n",n,j,targetName);
    382382    }
    383383
Note: See TracChangeset for help on using the changeset viewer.