From: Konke Radlow <koradlow@googlemail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl, koradlow@gmail.com
Subject: Re: [RFC PATCH 2/2] Add rds-ctl tool (with changes proposed in RFC)
Date: Thu, 9 Aug 2012 14:34:28 +0000 [thread overview]
Message-ID: <CAFomkUCsxjLjXYm1+Y6mK7CSfY1hMe+81+eq4cbYAhofY-HT8w@mail.gmail.com> (raw)
In-Reply-To: <5023A770.5080604@redhat.com>
On Thu, Aug 9, 2012 at 12:05 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> Hi,
>
> Comments inline.
>
>
> On 08/07/2012 05:11 PM, Konke Radlow wrote:
>>
>> ---
>> Makefile.am | 3 +-
>> configure.ac | 1 +
>> utils/rds-ctl/Makefile.am | 5 +
>> utils/rds-ctl/rds-ctl.cpp | 959
>> +++++++++++++++++++++++++++++++++++++++++++++
>> 4 files changed, 967 insertions(+), 1 deletion(-)
>> create mode 100644 utils/rds-ctl/Makefile.am
>> create mode 100644 utils/rds-ctl/rds-ctl.cpp
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index 621d8d9..8ef0d00 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>
>
> <Snip>
>
>
>> +static void print_rds_data(const struct v4l2_rds *handle, uint32_t
>> updated_fields)
>> +{
>> + if (params.options[OptPrintBlock])
>> + updated_fields = 0xffffffff;
>> +
>> + if ((updated_fields & V4L2_RDS_PI) &&
>> + (handle->valid_fields & V4L2_RDS_PI)) {
>> + printf("\nPI: %04x", handle->pi);
>> + print_rds_pi(handle);
>> + }
>> +
>> + if (updated_fields & V4L2_RDS_PS &&
>> + handle->valid_fields & V4L2_RDS_PS) {
>> + printf("\nPS: ");
>> + for (int i = 0; i < 8; ++i) {
>> + /* filter out special characters */
>> + if (handle->ps[i] >= 0x20 && handle->ps[i] <=
>> 0x7E)
>> + printf("%lc",handle->ps[i]);
>> + else
>> + printf(" ");
>> + }
>
>
>
> Since ps now is a 0 terminated UTF-8 string you should be able to just do:
> printf("\nPS: %s", handle->ps);
>
> And likewise for the other strings.
>
changed as proposed, and works like a charm :)
>
>
> Other then that this looks good to me.
>
> Regards,
>
> Hans
thank you for the review
Regards,
Konke
next prev parent reply other threads:[~2012-08-09 14:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[RFC PATCH 0/2] Add support for RDS decoding>
2012-08-07 15:11 ` [RFC PATCH 0/2] Add support for RDS decoding (updated) Konke Radlow
2012-08-07 15:11 ` [RFC PATCH 1/2] Add libv4l2rds library (with changes proposed in RFC) Konke Radlow
2012-08-07 15:11 ` [RFC PATCH 2/2] Add rds-ctl tool " Konke Radlow
2012-08-09 12:05 ` Hans de Goede
2012-08-09 14:34 ` Konke Radlow [this message]
2012-08-09 7:22 ` [RFC PATCH 1/2] Add libv4l2rds library " Gregor Jasny
2012-08-09 14:12 ` Konke Radlow
2012-08-09 11:58 ` Hans de Goede
2012-08-09 12:14 ` Hans Verkuil
2012-08-10 7:16 ` Hans de Goede
2012-08-10 7:36 ` Hans Verkuil
2012-08-10 8:20 ` Hans de Goede
2012-08-09 14:30 ` Konke Radlow
2012-08-09 12:17 ` Hans Verkuil
2012-08-08 12:03 ` [RFC PATCH 0/2] Add support for RDS decoding (updated) Konke Radlow
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=CAFomkUCsxjLjXYm1+Y6mK7CSfY1hMe+81+eq4cbYAhofY-HT8w@mail.gmail.com \
--to=koradlow@googlemail.com \
--cc=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=koradlow@gmail.com \
--cc=linux-media@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.