> Hi Shirokov, > > On Fri, 21 Apr 2023 at 22:48, Shirokov Alexander > <shirokoval...@gmail.com> 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/20210720132940.1171011-13-...@chromium.org/ > [2] > https://patchwork.ozlabs.org/project/uboot/patch/20210724150341.243074-13-...@chromium.org/ >
Thanks a lot, Simon I prepared the patch without 0x prefix: http://patchwork.ozlabs.org/project/uboot/patch/20230425100030.22403-1-shirokoval...@gmail.com/ -- Regards, Alexander