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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux