Changeset 30252
- Timestamp:
- Jan 12, 2011, 4:15:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/Ohana/src/tools/src/roc.c
r30237 r30252 318 318 319 319 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); 321 321 322 322 scan_line (target, line); … … 352 352 for (i = 0; i < Ninput; i++) { 353 353 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); 355 355 } 356 356 … … 365 365 Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]); 366 366 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); 368 368 if (Nread < ROC_BLOCKSIZE) { 369 369 // if we have reached the end of the file, fill in the rest with NULLs … … 379 379 value = value ^ inputData[i][j]; 380 380 } 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); 382 382 } 383 383
Note:
See TracChangeset
for help on using the changeset viewer.
