| Message ID | 20240825122617.3708982-2-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRB56FVS3AMGQE42DUTSA@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com
[209.85.167.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 222CF41740
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 25 Aug 2024 14:26:33 +0200 (CEST)
Received: by mail-lf1-f71.google.com with SMTP id
2adb3069b0e04-5343d2af7easf1662983e87.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 25 Aug 2024 05:26:33 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1724588792; cv=pass;
d=google.com; s=arc-20240605;
b=LlQlxO2N6YD6IdmFUxp+1cfVWStdOHiFyop5Ah6ActvJyhQHAiPd9888QzPzGlylDl
k+Ebuh8HAbf83h96XSqHm1xrl+iilBN5uLUgqQ4BcUglKq0r76tB+X7uI5aQGGCz+aXX
MzjspKKBsrKAFY2nHAPZdSh1zyLB+/BBPZdYpYLQlyOdrxotWRqvUVbVQyknaW2N+VrL
36v0RT412QfDF5k/NjQrpA04EbPaaCWFU7f1xWQoYxka84u/ab3X66e7OHk1JPi3q7YV
5LHDrw4CfWVoKb4vjk8IXoyANRunA4uNDzbUVTChUOce/9OhSTg1C7SaplS/uMXo7HKz
qMxA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=+mGuzHYXW3lQrSLa8/a1SIFSqe2YkJsm4pJWeZ+T4+0=;
fh=hRTsu0Q/0we4me3SXLDOHXPIMcAPJBH8YDBCbNluEXY=;
b=kzmnI3uhwPJsWniS0AcIxblgx5IMR3/0Q4DfbeD4TB5nqyBzSn5kZsWhfou5Neygo0
I/Z8PXrdhKVHZ6g4XML/Y/66bO5YYn1l1hsFTpj1ytjEWsUC3/V3p+hg3WIMUAK6fyh5
Mu5A7fdgue2E6tknEd87NcrMb/qCP+QCWkXFRdFs4QfV67M/UuTQFFEsFdQUp4hNr86M
3gh047z0P1/M/dKDd73XUEJ2v76w1CQYcpATg229sGVXxJDZTEbkHhsGlJVm9e6TYZKO
mCzlmE7UK2gOuU0YzUH4tUX/7m742rMiJO1OeISo9YUmm7/Pi/Skvc8QaoqybsQWoW4t
6V/A==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=aDcRFKKh;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1724588792; x=1725193592;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=+mGuzHYXW3lQrSLa8/a1SIFSqe2YkJsm4pJWeZ+T4+0=;
b=f0o6IyGHWGjbZ2kTk6RDZoPUfRiEwBGTPLWcKdVkQFUzJWi+hKZ4sSKg0sv7S2prXU
g0U2vvizcK6Cbdl1FLur+EOXeOLKjvuil0S+0n0qRAbAJk5XRUbfCuydKVjGb8pyGfqg
ctPuSiOnYCypIQ3nBHL8hcBO4fPpbMcdA3C5M=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1724588792; x=1725193592;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=+mGuzHYXW3lQrSLa8/a1SIFSqe2YkJsm4pJWeZ+T4+0=;
b=UjqIHIC4xR7dAfZxxCbJHuMSMuwY8ofJOClKP3lljFSAkCJNSM7nWJ8lvRMll+MuVw
HF7/6ffG/IK7aP4wJcjx+mQrgl+4zHCrAOqKD+DvK44KFRxn4d44bRANQ5h0254AweXk
R7l+I9lsTDgsfGsXS1D4iSYOAG2mxW69HrS02AMIeWw+EmvFPvczJ1jcCNBtH0QqvXIE
zgmxYAFV+XG1ShfEPLOYQvYg1qGBw4270wYMhzmk/5YkuQQZoZ+6BGoLEX24CnsFrO1I
m4I55DjjYetXqEt6pfVENod7HrU8ZFq5synr8vG9knwFT0hz4qOOuCYw7UO/iJrHgUCA
oz8Q==
X-Forwarded-Encrypted: i=2;
AJvYcCUEHsjCfiZEhAXI4J0vRl5rmwg0jeccqFjtayxeydxKeLy+Sws/XtQtRjFsSgqgsA9TVzp5XxWZuYjHcALH@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YxZZxLdJ704kXh9pyjvLgCn/FWPfTDOrc38OZyAiafKWxe1poPt
p8TIDVgQhzYfXUkMVWtz0PhS/wXg39cPgMa7atMVmFKYDqlz3Ib2wHrBVG98Lcp36w==
X-Google-Smtp-Source:
AGHT+IGeRyyc+LEa3qWUQnHNVN69Xf5bzIgHNzcXvRyA6935UsnOdiSyOqGtmFvyY8OaomImA0Ks2Q==
X-Received: by 2002:a05:6512:3c97:b0:530:e1f1:8dc9 with SMTP id
2adb3069b0e04-534387be5e5mr4463323e87.46.1724588792103;
Sun, 25 Aug 2024 05:26:32 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:6512:b84:b0:52e:fdfc:47b6 with SMTP id
2adb3069b0e04-5334e120886ls599919e87.2.-pod-prod-01-eu; Sun, 25 Aug 2024
05:26:30 -0700 (PDT)
X-Received: by 2002:a05:6512:39ca:b0:52f:228:cf80 with SMTP id
2adb3069b0e04-534387be63bmr5684384e87.40.1724588790176;
Sun, 25 Aug 2024 05:26:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1724588790; cv=none;
d=google.com; s=arc-20160816;
b=MN/t4fClsADGE/++ZkMNT82eWTuGQpJq/piSCKe7/Duk++h+wlzy9tQEGLol+MxkvK
Rc0FUDAbgUZP0R+SzStj6ZKoJsQP9F3cCsQsZVazjh2iMjh/SvTmpwbQxy42qokaC+ZP
PAjgk6GBNoECYyy/mxG4vaQuDkpb/pVwDXlqzYVvZf3FodwLNk6CsfGX+dNoBKrKxPoS
I8uAgBDx6dtOAVcCpKygE8nO/C2HnJwQbhPjE0fx07RTE2avnu97PDpcU9DzNXOgDNQ2
TytZ7A4mMZ0uWzC98FbPmcEsDI2MUCNDKDpST+sVFDd2lW/toakPMkhp5V8bsaJeOOTX
oxSQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=zfgQFY50ArhCt4JCqg9HePmw2ZEGsA30/N1SL6afrKo=;
fh=/YHt77LBHMuAPUrDma7nXkF5TkNYmyS0FVUZ9jOpbyE=;
b=1DnH04B/02QptK3G82uem1TN3nN6cA7GY7xC1KovFM7zagOErGarnU7I/jn9VrJjhu
0pNzZ2QaMCYz4CkSwHaUQ8AxiKxw1isZgJYSVqQkYP74m1V2h8Q12JLjt46XTMisfsXd
6mColXRa3fyizUU/BDXI82DFHJ7VfAsVX6mprZZwlzNSINLY5h9fpyEI3V9cAGSiJBJf
DXKEK4ql2731sF3vLL2hVOFNOZUIR7LsYYEkrlv5vdxaCfcNh6EmuNykwNmXPamoluQp
kkFiDJQriQPeqrJhao/ZrK47netDY7Du+qb4mi+YhzMgnpjkm8Pytu658Lo6Vg8oy1aK
4Vcw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=aDcRFKKh;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
2adb3069b0e04-5334ea29fb7sor1939872e87.2.2024.08.25.05.26.30
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sun, 25 Aug 2024 05:26:30 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a2e:6101:0:b0:2ef:1f51:c4f2 with SMTP id
38308e7fff4ca-2f4f48f9354mr45710611fa.14.1724588789495;
Sun, 25 Aug 2024 05:26:29 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it
(host-79-25-99-149.retail.telecomitalia.it. [79.25.99.149])
by smtp.gmail.com with ESMTPSA id
4fb4d7f45d1cf-5c04a4c4377sm4651563a12.74.2024.08.25.05.26.28
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 25 Aug 2024 05:26:29 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Eddie James <eajames@linux.ibm.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH 2/2] cmd: booti: adjust the print format
Date: Sun, 25 Aug 2024 14:26:08 +0200
Message-ID: <20240825122617.3708982-2-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240825122617.3708982-1-dario.binacchi@amarulasolutions.com>
References: <20240825122617.3708982-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=aDcRFKKh;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[1/2] bootm: adjust the print format
|
|
Commit Message
Dario Binacchi
Aug. 25, 2024, 12:26 p.m. UTC
All three addresses printed are in hexadecimal format, but only the
first two have the "0x" prefix. The patch aligns the format of the
"end" address with the other two by adding the "0x" prefix.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
cmd/booti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Dario, On Sun, 25 Aug 2024 at 06:26, Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > All three addresses printed are in hexadecimal format, but only the > first two have the "0x" prefix. The patch aligns the format of the > "end" address with the other two by adding the "0x" prefix. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > cmd/booti.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cmd/booti.c b/cmd/booti.c > index 62b19e834366..ea811244a0a9 100644 > --- a/cmd/booti.c > +++ b/cmd/booti.c > @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) > > /* Handle BOOTM_STATE_LOADOS */ > if (relocated_addr != ld) { > - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, > + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, > relocated_addr, relocated_addr + image_size); > memmove((void *)relocated_addr, (void *)ld, image_size); > } > -- > 2.43.0 > I really don't like this...numbers are hex in U-Boot and this just adds confusion. Regards, Simon To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hi Simon, On Thu, Aug 29, 2024 at 4:05 PM Simon Glass <sjg@chromium.org> wrote: > > Hi Dario, > > On Sun, 25 Aug 2024 at 06:26, Dario Binacchi > <dario.binacchi@amarulasolutions.com> wrote: > > > > All three addresses printed are in hexadecimal format, but only the > > first two have the "0x" prefix. The patch aligns the format of the > > "end" address with the other two by adding the "0x" prefix. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > cmd/booti.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/cmd/booti.c b/cmd/booti.c > > index 62b19e834366..ea811244a0a9 100644 > > --- a/cmd/booti.c > > +++ b/cmd/booti.c > > @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) > > > > /* Handle BOOTM_STATE_LOADOS */ > > if (relocated_addr != ld) { > > - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, > > + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, > > relocated_addr, relocated_addr + image_size); > > memmove((void *)relocated_addr, (void *)ld, image_size); > > } > > -- > > 2.43.0 > > > > I really don't like this...numbers are hex in U-Boot and this just > adds confusion. Sorry, but I'm quite confused. Doesn't printing 3 numbers in hexadecimal format with different formatting (two with `0x` and one without) create more confusion? At least we should ensure formatting consistency. Also, it seems to me that this patch: https://patchwork.ozlabs.org/project/uboot/patch/20240825122617.3708982-1-dario.binacchi@amarulasolutions.com/ has been considered correct. Thanks and regards, Dario > > Regards, > Simon
Hi Dario, On Thu, 29 Aug 2024 at 08:25, Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > Hi Simon, > > On Thu, Aug 29, 2024 at 4:05 PM Simon Glass <sjg@chromium.org> wrote: > > > > Hi Dario, > > > > On Sun, 25 Aug 2024 at 06:26, Dario Binacchi > > <dario.binacchi@amarulasolutions.com> wrote: > > > > > > All three addresses printed are in hexadecimal format, but only the > > > first two have the "0x" prefix. The patch aligns the format of the > > > "end" address with the other two by adding the "0x" prefix. > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > > > --- > > > > > > cmd/booti.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/cmd/booti.c b/cmd/booti.c > > > index 62b19e834366..ea811244a0a9 100644 > > > --- a/cmd/booti.c > > > +++ b/cmd/booti.c > > > @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) > > > > > > /* Handle BOOTM_STATE_LOADOS */ > > > if (relocated_addr != ld) { > > > - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, > > > + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, > > > relocated_addr, relocated_addr + image_size); > > > memmove((void *)relocated_addr, (void *)ld, image_size); > > > } > > > -- > > > 2.43.0 > > > > > > > I really don't like this...numbers are hex in U-Boot and this just > > adds confusion. > > Sorry, but I'm quite confused. > Doesn't printing 3 numbers in hexadecimal format with different > formatting (two with `0x` and > one without) create more confusion? > At least we should ensure formatting consistency. > Also, it seems to me that this patch: > https://patchwork.ozlabs.org/project/uboot/patch/20240825122617.3708982-1-dario.binacchi@amarulasolutions.com/ > has been considered correct. > > Thanks and regards, IMO we should avoid adding 0x to things...particularly for addresses. Better to remove it when it has crept in. Regards, SImon To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Thu, Aug 29, 2024 at 09:00:30AM -0600, Simon Glass wrote: > Hi Dario, > > On Thu, 29 Aug 2024 at 08:25, Dario Binacchi > <dario.binacchi@amarulasolutions.com> wrote: > > > > Hi Simon, > > > > On Thu, Aug 29, 2024 at 4:05 PM Simon Glass <sjg@chromium.org> wrote: > > > > > > Hi Dario, > > > > > > On Sun, 25 Aug 2024 at 06:26, Dario Binacchi > > > <dario.binacchi@amarulasolutions.com> wrote: > > > > > > > > All three addresses printed are in hexadecimal format, but only the > > > > first two have the "0x" prefix. The patch aligns the format of the > > > > "end" address with the other two by adding the "0x" prefix. > > > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > > > > > --- > > > > > > > > cmd/booti.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/cmd/booti.c b/cmd/booti.c > > > > index 62b19e834366..ea811244a0a9 100644 > > > > --- a/cmd/booti.c > > > > +++ b/cmd/booti.c > > > > @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) > > > > > > > > /* Handle BOOTM_STATE_LOADOS */ > > > > if (relocated_addr != ld) { > > > > - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, > > > > + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, > > > > relocated_addr, relocated_addr + image_size); > > > > memmove((void *)relocated_addr, (void *)ld, image_size); > > > > } > > > > -- > > > > 2.43.0 > > > > > > > > > > I really don't like this...numbers are hex in U-Boot and this just > > > adds confusion. > > > > Sorry, but I'm quite confused. > > Doesn't printing 3 numbers in hexadecimal format with different > > formatting (two with `0x` and > > one without) create more confusion? > > At least we should ensure formatting consistency. > > Also, it seems to me that this patch: > > https://patchwork.ozlabs.org/project/uboot/patch/20240825122617.3708982-1-dario.binacchi@amarulasolutions.com/ > > has been considered correct. > > > > Thanks and regards, > > IMO we should avoid adding 0x to things...particularly for addresses. > Better to remove it when it has crept in. That we don't prefix with "0x" like humans generally expect is why people have been confused why partition 10 is in fact not 10-in-decimal but 0x10.
Hi Tom, On Thu, 29 Aug 2024 at 09:03, Tom Rini <trini@konsulko.com> wrote: > > On Thu, Aug 29, 2024 at 09:00:30AM -0600, Simon Glass wrote: > > Hi Dario, > > > > On Thu, 29 Aug 2024 at 08:25, Dario Binacchi > > <dario.binacchi@amarulasolutions.com> wrote: > > > > > > Hi Simon, > > > > > > On Thu, Aug 29, 2024 at 4:05 PM Simon Glass <sjg@chromium.org> wrote: > > > > > > > > Hi Dario, > > > > > > > > On Sun, 25 Aug 2024 at 06:26, Dario Binacchi > > > > <dario.binacchi@amarulasolutions.com> wrote: > > > > > > > > > > All three addresses printed are in hexadecimal format, but only the > > > > > first two have the "0x" prefix. The patch aligns the format of the > > > > > "end" address with the other two by adding the "0x" prefix. > > > > > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > > > > > > > --- > > > > > > > > > > cmd/booti.c | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/cmd/booti.c b/cmd/booti.c > > > > > index 62b19e834366..ea811244a0a9 100644 > > > > > --- a/cmd/booti.c > > > > > +++ b/cmd/booti.c > > > > > @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) > > > > > > > > > > /* Handle BOOTM_STATE_LOADOS */ > > > > > if (relocated_addr != ld) { > > > > > - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, > > > > > + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, > > > > > relocated_addr, relocated_addr + image_size); > > > > > memmove((void *)relocated_addr, (void *)ld, image_size); > > > > > } > > > > > -- > > > > > 2.43.0 > > > > > > > > > > > > > I really don't like this...numbers are hex in U-Boot and this just > > > > adds confusion. > > > > > > Sorry, but I'm quite confused. > > > Doesn't printing 3 numbers in hexadecimal format with different > > > formatting (two with `0x` and > > > one without) create more confusion? > > > At least we should ensure formatting consistency. > > > Also, it seems to me that this patch: > > > https://patchwork.ozlabs.org/project/uboot/patch/20240825122617.3708982-1-dario.binacchi@amarulasolutions.com/ > > > has been considered correct. > > > > > > Thanks and regards, > > > > IMO we should avoid adding 0x to things...particularly for addresses. > > Better to remove it when it has crept in. > > That we don't prefix with "0x" like humans generally expect is why > people have been confused why partition 10 is in fact not 10-in-decimal > but 0x10. Yes, that's the one example which was in my head when reviewing this patch. Regards, Simon To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/cmd/booti.c b/cmd/booti.c index 62b19e834366..ea811244a0a9 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -78,7 +78,7 @@ static int booti_start(struct bootm_info *bmi) /* Handle BOOTM_STATE_LOADOS */ if (relocated_addr != ld) { - printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, + printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n", ld, relocated_addr, relocated_addr + image_size); memmove((void *)relocated_addr, (void *)ld, image_size); }