Commit 98c3f94e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] siano: remove doubled new line

sms_debug() and sms_info() already adds a '\n' at the printed
strings. No need to add more.
That helps to cleanup stuff like:
	[ 4868.205648] smscore_onresponse: message not handled.
	[ 4868.205898] smscore_onresponse: message not handled.
and:
	[ 5467.959769] smscore_onresponse:
	data rate 143069 bytes/secs
While here, provides the message name, when the message is not
handled by the smsmdtv core.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 07bb6bdd
...@@ -1495,7 +1495,7 @@ void smscore_onresponse(struct smscore_device_t *coredev, ...@@ -1495,7 +1495,7 @@ void smscore_onresponse(struct smscore_device_t *coredev,
last_sample_time = time_now; last_sample_time = time_now;
if (time_now - last_sample_time > 10000) { if (time_now - last_sample_time > 10000) {
sms_debug("\ndata rate %d bytes/secs", sms_debug("data rate %d bytes/secs",
(int)((data_total * 1000) / (int)((data_total * 1000) /
(time_now - last_sample_time))); (time_now - last_sample_time)));
...@@ -1606,7 +1606,9 @@ void smscore_onresponse(struct smscore_device_t *coredev, ...@@ -1606,7 +1606,9 @@ void smscore_onresponse(struct smscore_device_t *coredev,
break; break;
default: default:
sms_debug("message not handled.\n"); sms_debug("message %s(%d) not handled.",
smscore_translate_msg(phdr->msgType),
phdr->msgType);
break; break;
} }
smscore_putbuffer(coredev, cb); smscore_putbuffer(coredev, cb);
......
...@@ -949,7 +949,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe) ...@@ -949,7 +949,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe)
c->bandwidth_hz = 6000000; c->bandwidth_hz = 6000000;
sms_info("%s: freq %d segwidth %d segindex %d\n", __func__, sms_info("%s: freq %d segwidth %d segindex %d", __func__,
c->frequency, c->isdbt_sb_segment_count, c->frequency, c->isdbt_sb_segment_count,
c->isdbt_sb_segment_idx); c->isdbt_sb_segment_idx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment