From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: devel@driverdev.osuosl.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
speakup@braille.uwo.ca
Subject: Re: [PATCH v2 3/4] staging: speakup: reuse native hex2bin()
Date: Tue, 9 Apr 2013 17:34:42 +0200 [thread overview]
Message-ID: <20130409153442.GB5110@type> (raw)
In-Reply-To: <1365509589.6652.130.camel@smile>
Andy Shevchenko, le Tue 09 Apr 2013 15:13:09 +0300, a écrit :
> > > + if (*p1 == 'x' && !hex2bin(&num, p1 + 1, 1)) {
> >
> > Count should be 2, shouldn't it?
>
> Actually, no. It means bytes in the result.
Ah, right.
> If I got it correctly the original code translates '\xNN' into NN which
> is exactly one byte.
Yes.
Samuel
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1364461366-4939-1-git-send-email-andriy.shevchenko@linux.intel.com>
[not found] ` <1364461366-4939-2-git-send-email-andriy.shevchenko@linux.intel.com>
` [PATCH v2 2/4] staging: speakup: use native error codes Samuel Thibault
[not found] ` <1364461366-4939-3-git-send-email-andriy.shevchenko@linux.intel.com>
` [PATCH v2 3/4] staging: speakup: reuse native hex2bin() Samuel Thibault
[not found] ` <1365509589.6652.130.camel@smile>
` Samuel Thibault [this message]
[not found] ` <1364461366-4939-4-git-send-email-andriy.shevchenko@linux.intel.com>
` [PATCH v2 4/4] staging: speakup: fix a bug when translate octal numbers Samuel Thibault
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=20130409153442.GB5110@type \
--to=samuel.thibault@ens-lyon.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=speakup@braille.uwo.ca \
--cc=speakup@linux-speakup.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).