diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-03-02 04:04:40 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-03-14 16:08:51 -0600 |
commit | ed4dcb1f9b12e84721f70cc0a9bf838059581967 (patch) | |
tree | a17209036fc0f66e8718e3c15fe625f70569d054 | |
parent | 97d6d7e3606a352843bae6547e972fbaca3ccf7b (diff) | |
download | u-boot-ed4dcb1f9b12e84721f70cc0a9bf838059581967.zip u-boot-ed4dcb1f9b12e84721f70cc0a9bf838059581967.tar.gz u-boot-ed4dcb1f9b12e84721f70cc0a9bf838059581967.tar.bz2 |
cmd: fdt: Drop the 0x prefix
The 'fdt get addr' is always assumed to be hex value, drop the prefix.
Since this might break existing users who depend on the existing
behavior with 0x prefix, this is a separate patch. Revert if this
breaks anything.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
-rw-r--r-- | cmd/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -478,7 +478,7 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) /* Get address */ char buf[19]; - snprintf(buf, sizeof(buf), "0x%lx", + snprintf(buf, sizeof(buf), "%lx", (ulong)map_to_sysmem(nodep)); env_set(var, buf); } else if (subcmd[0] == 's') { |