Revision 1f425cb8 external_chunk_transcoding.c

View differences:

external_chunk_transcoding.c
24 24

  
25 25
void print_block(const uint8_t *b, int size) {
26 26
int i=0;
27
printf("BEGIN OF %d BYTES---\n", size);
27
fprintf(stderr,"BEGIN OF %d BYTES---\n", size);
28 28
for(i=0; i<size; i++) {
29
printf("%d ", *(b+i));
29
fprintf(stderr,"%d ", *(b+i));
30 30
}
31
printf("END OF %d BYTES---\n", size);
31
fprintf(stderr,"END OF %d BYTES---\n", size);
32 32
}
33 33

  
34 34
void chunker_logger(const char *s) {
35
	printf("%s\n", s);
35
	fprintf(stderr,"%s\n", s);
36 36
}
37 37

  
38 38

  
......
83 83
	uint64_t tmp_prio;
84 84
	ExternalChunk *echunk = (ExternalChunk *)malloc(sizeof(ExternalChunk));
85 85
	if(!echunk) {
86
		printf("Memory error in chunkToExternalchunk!\n");
86
		fprintf(stderr,"Memory error in chunkToExternalchunk!\n");
87 87
		return NULL;
88 88
	}
89 89
	/* pull out info from the attributes block from the grapes chunk */

Also available in: Unified diff