diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-19 12:06:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 06:53:50 -0400 |
commit | 98c3f94e6db3b4df21336b41c646366ea417527c (patch) | |
tree | 3120c80b13148c39c56ab731aa51282172be723d | |
parent | 07bb6bdddfa09f01024e5caeb2bab8836b8de13e (diff) |
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/common/siano/smscoreapi.c | 6 | ||||
-rw-r--r-- | drivers/media/common/siano/smsdvb-main.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/common/siano/smscoreapi.c b/drivers/media/common/siano/smscoreapi.c index c04d8267adba..92eea545ed4e 100644 --- a/drivers/media/common/siano/smscoreapi.c +++ b/drivers/media/common/siano/smscoreapi.c | |||
@@ -1495,7 +1495,7 @@ void smscore_onresponse(struct smscore_device_t *coredev, | |||
1495 | last_sample_time = time_now; | 1495 | last_sample_time = time_now; |
1496 | 1496 | ||
1497 | if (time_now - last_sample_time > 10000) { | 1497 | if (time_now - last_sample_time > 10000) { |
1498 | sms_debug("\ndata rate %d bytes/secs", | 1498 | sms_debug("data rate %d bytes/secs", |
1499 | (int)((data_total * 1000) / | 1499 | (int)((data_total * 1000) / |
1500 | (time_now - last_sample_time))); | 1500 | (time_now - last_sample_time))); |
1501 | 1501 | ||
@@ -1606,7 +1606,9 @@ void smscore_onresponse(struct smscore_device_t *coredev, | |||
1606 | break; | 1606 | break; |
1607 | 1607 | ||
1608 | default: | 1608 | default: |
1609 | sms_debug("message not handled.\n"); | 1609 | sms_debug("message %s(%d) not handled.", |
1610 | smscore_translate_msg(phdr->msgType), | ||
1611 | phdr->msgType); | ||
1610 | break; | 1612 | break; |
1611 | } | 1613 | } |
1612 | smscore_putbuffer(coredev, cb); | 1614 | smscore_putbuffer(coredev, cb); |
diff --git a/drivers/media/common/siano/smsdvb-main.c b/drivers/media/common/siano/smsdvb-main.c index c53cb4e8d0c6..a2882f5cfdd0 100644 --- a/drivers/media/common/siano/smsdvb-main.c +++ b/drivers/media/common/siano/smsdvb-main.c | |||
@@ -949,7 +949,7 @@ static int smsdvb_isdbt_set_frontend(struct dvb_frontend *fe) | |||
949 | 949 | ||
950 | c->bandwidth_hz = 6000000; | 950 | c->bandwidth_hz = 6000000; |
951 | 951 | ||
952 | sms_info("%s: freq %d segwidth %d segindex %d\n", __func__, | 952 | sms_info("%s: freq %d segwidth %d segindex %d", __func__, |
953 | c->frequency, c->isdbt_sb_segment_count, | 953 | c->frequency, c->isdbt_sb_segment_count, |
954 | c->isdbt_sb_segment_idx); | 954 | c->isdbt_sb_segment_idx); |
955 | 955 | ||