Re: [PATCH v3] ARM: rpi: parse useful data from vc fdt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux