Mercurial > pt1.mumumu
changeset 62:c6a5c844c7fd
make some messages go stderr instead of stdout.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 09 Oct 2009 14:02:18 +0900 |
parents | f1553492e8bb |
children | ca419e61f7f2 |
files | recpt1/recpt1.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/recpt1/recpt1.c Fri Oct 09 11:04:36 2009 +0900 +++ b/recpt1/recpt1.c Fri Oct 09 14:02:18 2009 +0900 @@ -422,7 +422,7 @@ double CNR; if(ioctl(fd, GET_SIGNAL_STRENGTH, &rc) < 0) { - printf("Tuner Select Error\n"); + fprintf(stderr, "Tuner Select Error\n"); return ; } @@ -430,11 +430,11 @@ P = log10(5505024/(double)rc) * 10; CNR = (0.000024 * P * P * P * P) - (0.0016 * P * P * P) + (0.0398 * P * P) + (0.5491 * P)+3.0965; - printf("Signal=%fdB\n", CNR); + fprintf(stderr, "Signal=%fdB\n", CNR); } else { CNR = getsignal_isdb_s(rc); - printf("Signal=%fdB\n", CNR); + fprintf(stderr, "Signal=%fdB\n", CNR); } }