diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-03 18:03:17 +0100 |
commit | 618c88a6e3c594b8382b4c61710a968c6adcdf49 (patch) | |
tree | 314e99e56cc0715fdcbeed2189fc6056a5c6e4d0 /src/fec/decode_rs.h | |
parent | 4e196f337303304cc9cb15b5d7d345646486e68f (diff) | |
download | etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.gz etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.tar.bz2 etisnoop-618c88a6e3c594b8382b4c61710a968c6adcdf49.zip |
Output YAML
Diffstat (limited to 'src/fec/decode_rs.h')
-rw-r--r-- | src/fec/decode_rs.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fec/decode_rs.h b/src/fec/decode_rs.h index c165cf3..03a800a 100644 --- a/src/fec/decode_rs.h +++ b/src/fec/decode_rs.h @@ -145,15 +145,15 @@ count++; } if (count != no_eras) { - printf("count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras); + fprintf(stderr, "RS: count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras); count = -1; goto finish; } #if DEBUG >= 2 - printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n"); + fprintf(stderr, "\n Erasure positions as determined by roots of Eras Loc Poly:\n"); for (i = 0; i < count; i++) - printf("%d ", loc[i]); - printf("\n"); + fprintf(stderr, "%d ", loc[i]); + fprintf(stderr, "\n"); #endif #endif } @@ -227,7 +227,7 @@ continue; /* Not a root */ /* store root (index-form) and error location number */ #if DEBUG>=2 - printf("count %d root %d loc %d\n",count,i,k); + fprintf(stderr, "count %d root %d loc %d\n",count,i,k); #endif root[count] = i; loc[count] = k; @@ -279,7 +279,7 @@ } #if DEBUG >= 1 if (den == 0) { - printf("\n ERROR: denominator = 0\n"); + fprintf(stderr, "\n ERROR: denominator = 0\n"); count = -1; goto finish; } |