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 |