=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/headers.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/aucat/Attic/headers.c 2009/07/25 10:52:19 1.7 +++ src/usr.bin/aucat/Attic/headers.c 2009/09/27 11:51:20 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: headers.c,v 1.7 2009/07/25 10:52:19 ratchov Exp $ */ +/* $OpenBSD: headers.c,v 1.8 2009/09/27 11:51:20 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -125,13 +125,6 @@ par->msb = 1; par->cmax = cmax; par->rate = rate; -#ifdef DEBUG - if (debug_level > 0) { - fprintf(stderr, "wav_readfmt: using "); - aparams_print(par); - fprintf(stderr, "\n"); - } -#endif return 1; } @@ -148,7 +141,7 @@ return 0; } if (read(fd, &riff, sizeof(riff)) != sizeof(riff)) { - warn("riff_read: header"); + warn("wav_readhdr: header"); return 0; } if (memcmp(&riff.magic, &wav_id_riff, 4) != 0 || @@ -159,7 +152,7 @@ rsize = letoh32(riff.size); while (pos + sizeof(struct wavchunk) <= rsize) { if (read(fd, &chunk, sizeof(chunk)) != sizeof(chunk)) { - warn("riff_read: chunk"); + warn("wav_readhdr: chunk"); return 0; } csize = letoh32(chunk.size); @@ -171,7 +164,6 @@ *datasz = csize; break; } else { - DPRINTF("unknown chunk: <%.4s>\n", chunk.id); } /*