cigarOp = BAM_CPAD;\r
break;\r
default:\r
- printf("ERROR: Unknown cigar operation found: %c\n", coIter->Type);\r
+ fprintf(stderr, "ERROR: Unknown cigar operation found: %c\n", coIter->Type);\r
exit(1);\r
}\r
\r
break;\r
\r
default:\r
- printf("ERROR: Only the following bases are supported in the BAM format: {=, A, C, G, T, N}. Found [%c]\n", *pQuery);\r
+ fprintf(stderr, "ERROR: Only the following bases are supported in the BAM format: {=, A, C, G, T, N}. Found [%c]\n", *pQuery);\r
exit(1);\r
}\r
\r
break;\r
\r
default : \r
- printf("ERROR: Invalid tag value type\n"); // shouldn't get here\r
+ fprintf(stderr, "ERROR: Invalid tag value type\n"); // shouldn't get here\r
free(tagData);\r
exit(1); \r
}\r