Re: [PATCH v3 2/6] cmd: printf: import busybox-1.33.1 printf.c

2021-07-26 Thread Roland Gaudig (OSS)
Hi Simon, On 23.07.21 21:41, Simon Glass wrote: > On Fri, 23 Jul 2021 at 06:30, Roland Gaudig > wrote: >> >> From: Roland Gaudig >> >> Import printf.c from the Busybox project, which provides Bash like >> format string handling. >> >> src-url: https://git.busybox.net/busybox/ >> commit bcc5b

Re: [PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-30 Thread Roland Gaudig (OSS)
Hello Wolfgang On 29.06.21 10:40, Wolfgang Denk wrote: > > Dear Roland, > > In message you wrote: >> >>> These are two pretty unfortunate restrictions. I guess it should >>> not be too hard to avoid both of these. Can you please give it a >>> try? >> >> I think it is possible to allow more th

Re: [PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-29 Thread Roland Gaudig (OSS)
Hello Wolfgang On 29.06.21 08:37, Wolfgang Denk wrote: > > In message <20210628151750.572837-1-roland.gaudig-...@weidmueller.com> you > wrote: >> >> >> U-Boot uses almost everywhere hexadecimal numbers. But some bootargs >> passed to Linux are expecting decimal numbers. As long as the values >> a

Re: [PATCH v1 1/1] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-23 Thread Roland Gaudig (OSS)
Dear Wolfgang, On Wed, 23. Jun 2021 08:03, Wolfgang Denk wrote: > > Dear Roland, > > In message <20210622135042.133904-2-roland.gaudig-...@weidmueller.com> you > wrote: >> >> This patch extends the setexpr command with a dec operator to >> convert an input value to decimal. > ... >> + /* h

Re: [PATCH v1 1/1] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-23 Thread Roland Gaudig (OSS)
Hi Simon, On Tue, 22. Jun 2021 at 21:25, Simon Glass wrote: > > Hi Roland, > > On Tue, 22 Jun 2021 at 07:51, wrote: >> >> From: Roland Gaudig >> >> This patch extends the setexpr command with a dec operator to >> convert an input value to decimal. >> >> Signed-off-by: Roland Gaudig >> --- >>

[PATCH v1 1/1] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-22 Thread roland . gaudig-oss
From: Roland Gaudig This patch extends the setexpr command with a dec operator to convert an input value to decimal. Signed-off-by: Roland Gaudig --- cmd/setexpr.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cmd/setexpr.c b/cmd/setexpr.c index e828be3

[PATCH v1 0/1] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-22 Thread roland . gaudig-oss
From: Roland Gaudig U-Boot uses almost everywhere hexadecimal numbers. But some bootargs passed to Linux are expecting decimal numbers. As long as the values are in the range 0 to 9 it is sufficient to just strip 0x from the number. But for greater values a method for converting numbers to decim

[PATCH] cmd: setexpr: add dec operation for converting variable to decimal

2021-06-17 Thread roland . gaudig-oss
From: Roland Gaudig This patch extends the setexpr command with a dec operator to convert an input value to decimal. Signed-off-by: Roland Gaudig --- cmd/setexpr.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cmd/setexpr.c b/cmd/setexpr.c index e828be39