From: Manu Abraham <abraham.manu@gmail.com>
To: linux-kernel@vger.kernel.org, v4l-dvb-maintainer@linuxtv.org,
akpm@linux-foundation.org
Cc: o.endriss@gmx.de
Subject: DVB Update [PATCH 20/31] multiproto tree
Date: Thu, 04 Sep 2008 22:40:42 +0400 [thread overview]
Message-ID: <48C02BAA.2050002@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 564 bytes --]
>From f27d011f67d5e00ead196b0fcc2585537c2f2380 Mon Sep 17 00:00:00 2001
From: Manu Abraham <manu@linuxtv.org>
Date: Thu, 4 Sep 2008 14:18:08 +0200
Subject: [PATCH] DVB Code review: explicitly display offending parameters
Code review #1 Explicitly display the offending parameters,
while doing parameter conversion.
Thanks to Oliver Endriss <o.endriss@gmx.de> for the code review
From: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
dvb_frontend.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
[-- Attachment #2: 20.patch --]
[-- Type: text/x-patch, Size: 3151 bytes --]
>From f27d011f67d5e00ead196b0fcc2585537c2f2380 Mon Sep 17 00:00:00 2001
From: Manu Abraham <manu@linuxtv.org>
Date: Thu, 4 Sep 2008 14:18:08 +0200
Subject: [PATCH] DVB Code review: explicitly display offending parameters
Code review #1 Explicitly display the offending parameters,
while doing parameter conversion.
Thanks to Oliver Endriss <o.endriss@gmx.de> for the code review
From: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index e6ae5e6..037199a 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -224,7 +224,7 @@ static int newfec_to_oldfec(enum dvbfe_fec new_fec, enum fe_code_rate *old_fec)
*old_fec = FEC_AUTO;
break;
default:
- printk("%s: Unsupported FEC\n", __func__);
+ printk("%s: Unsupported FEC %x\n", __func__, new_fec);
return -EINVAL;
}
@@ -265,7 +265,7 @@ static int oldfec_to_newfec(enum fe_code_rate old_fec, enum dvbfe_fec *new_fec)
*new_fec = DVBFE_FEC_AUTO;
break;
default:
- printk("%s: Unsupported FEC\n", __func__);
+ printk("%s: Unsupported FEC %x\n", __func__, old_fec);
return -EINVAL;
}
@@ -303,7 +303,7 @@ static int newmod_to_oldmod(enum dvbfe_modulation new_mod, enum fe_modulation *o
*old_mod = VSB_16;
break;
default:
- printk("%s: Unsupported Modulation\n", __func__);
+ printk("%s: Unsupported Modulation %x\n", __func__, new_mod);
return -EINVAL;
}
@@ -341,7 +341,7 @@ static int oldmod_to_newmod(enum fe_modulation old_mod, enum dvbfe_modulation *n
*new_mod = DVBFE_MOD_VSB16;
break;
default:
- printk("%s: Unsupported Modulation\n", __func__);
+ printk("%s: Unsupported Modulation %x\n", __func__, old_mod);
return -EINVAL;
}
@@ -390,7 +390,7 @@ int newapi_to_olddrv(struct dvbfe_params *params,
ofdm->bandwidth = BANDWIDTH_AUTO;
break;
default:
- dprintk("%s: Unsupported bandwidth\n", __func__);
+ dprintk("%s: Unsupported bandwidth %x\n", __func__, dvbt->bandwidth);
return -EINVAL;
}
newfec_to_oldfec(dvbt->code_rate_HP, &ofdm->code_rate_HP);
@@ -407,7 +407,7 @@ int newapi_to_olddrv(struct dvbfe_params *params,
ofdm->transmission_mode = TRANSMISSION_MODE_AUTO;
break;
default:
- dprintk("%s: Unsupported transmission mode\n", __func__);
+ dprintk("%s: Unsupported transmission mode %x\n", __func__, dvbt->bandwidth);
return -EINVAL;
}
switch (dvbt->guard_interval) {
@@ -452,7 +452,7 @@ int newapi_to_olddrv(struct dvbfe_params *params,
newmod_to_oldmod(atsc->modulation, &vsb->modulation);
break;
default:
- dprintk("%s: Unsupported delivery system\n", __func__);
+ dprintk("%s: Unsupported delivery system %x\n", __func__, delsys);
return -EINVAL;
break;
}
@@ -558,7 +558,7 @@ int olddrv_to_newapi(struct dvb_frontend *fe,
newmod_to_oldmod(atsc->modulation, &vsb->modulation);
break;
default:
- dprintk("%s: Unsupported delivery system\n", __func__);
+ dprintk("%s: Unsupported delivery system %x\n", __func__, fe_type);
return -EINVAL;
break;
}
reply other threads:[~2008-09-04 18:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C02BAA.2050002@gmail.com \
--to=abraham.manu@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=o.endriss@gmx.de \
--cc=v4l-dvb-maintainer@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox