mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Daniel Brát" <danek.brat@gmail.com>, barebox@lists.infradead.org
Subject: Re: [PATCH v3] ARM: rpi: parse useful data from vc fdt
Date: Fri, 17 Jun 2022 10:55:25 +0200	[thread overview]
Message-ID: <bf7af9b5-51f7-0c9a-4c51-47ce042e1585@pengutronix.de> (raw)
In-Reply-To: <f5eb7b28-fa80-99bd-f75d-3cd48391e38f@pengutronix.de>

Hi,

On 17.06.22 09:08, Ahmad Fatoum wrote:
>> +		pnum = xmalloc(sizeof(u32));
>> +		*pnum = num;
>> +		globalvar_add_simple_int("vc.boot_partition", pnum, "%u");

You could use setenv() with a format string instead, see Sascha's change to
the mailing list, this would simplify this chunk here.

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2022-06-17  9:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 18:41 Daniel Brát
2022-06-17  7:08 ` Ahmad Fatoum
2022-06-17  8:55   ` Ahmad Fatoum [this message]
2022-06-17  9:33     ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf7af9b5-51f7-0c9a-4c51-47ce042e1585@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=danek.brat@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox