[PATCH 13/15] RFC: lib: Support a binary prefix 0y

Wolfgang Denk wd at denx.de
Wed Jul 21 10:30:20 CEST 2021


Dear Sean,

In message <9e1797ea-c1bf-5749-03a6-cf0e9430f3c3 at gmail.com> you wrote:
> On 7/20/21 9:29 AM, Simon Glass wrote:
> > In some cases it is useful to be able to supply a binary value to a
> > command. Use the '0y' prefix for this (binarY).
>
> To bikeshed: 0b please

That doesn't work, as 0b010101 is in U-Boot in alost all contexts
interpreted as 0x0b010101 (hex) = 184615169 (dec)

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Microsoft Multitasking:
                     several applications can crash at the same time.


More information about the U-Boot mailing list