Hi Shirokov, On Fri, 21 Apr 2023 at 22:48, Shirokov Alexander <[email protected]> wrote: > > Hello Simon, > > Thanks for your answer.Using 0x explicitly shows that we are working with HEX. > But without the prefix, it looks like a decimal number. And it's more > confusing > when the number of blocks looks like a decimal but is interpreted as HEX. > > Here is an example: > > mmc write 0x40000000 0x5000 16 > MMC write: dev # 1, block # 20480, count 22 ... 22 blocks written: OK > > This looks better. If we know that all number is HEX by default > mmc write 40000000 5000 16 > > Do we have to use something like this?
The convention in U-Boot is to use hex, since it is a bootloader. So when you add 0x prefixes it confuses people into thinking that otherwise it would be decimal. BTW we did discuss adding a decimal prefix but they did not get much support at the time. Regards, Simon [1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/ [2] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

