[PATCH v2 3/4] staging: speakup: reuse native hex2bin()

Samuel Thibault samuel.thibault at ens-lyon.org
Tue Apr 9 11:34:42 EDT 2013


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


More information about the Speakup mailing list