On Wed, Jun 23, 2021 at 08:08:50AM +0200, Wolfgang Denk wrote:
> Dear Simon,
>
> In message
> you
> wrote:
> >
> > > > 0m123 ? ('m' for deciMal).
> > >
> > > Perhaps 0d123? Though I would prefer to remove many of the implicit
> > > assumptions of hex input.
> >
> > Right, we can't use 'd' beca
Dear Roland,
In message you wrote:
>
> > ...
> >> + /* hexadecimal to decimal conversion: "setexpr name dec value" */
> >> + if (argc == 4 && (strcmp(argv[2], "dec") == 0)) {
> >> + w = cmd_get_data_size(argv[3], 4);
> >> + a = get_arg(argv[3], w);
> >> +
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
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
>> ---
>>
Dear Simon,
In message
you wrote:
>
> > > 0m123 ? ('m' for deciMal).
> >
> > Perhaps 0d123? Though I would prefer to remove many of the implicit
> > assumptions of hex input.
>
> Right, we can't use 'd' because it is valid hex.
>
> I believe hex is the right default. We just need an easy way to
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.
...
> + /* hexadecimal to decimal conversion: "setexpr name dec value" */
> + if (argc == 4
Hi Sean,
On Tue, 22 Jun 2021 at 13:30, Sean Anderson wrote:
>
>
>
> On 6/22/21 3:25 PM, 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 in
On 6/22/21 3:25 PM, 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
>> ---
>>
>> cmd/setexpr.c | 16
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
> ---
>
> cmd/setexpr.c | 16 ++--
> 1 file changed, 14 insertions(+), 2 d
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
10 matches
Mail list logo