Add support for hexadecimal and pointer format specifiers to snprintf()
The current implementation of snprintf() does not support pointer and
hexadecimal format specifiers, which can be needed, for instance, for
DTB manipulations.

This patch adds that functionality by borrowing some code from the
printf() implementation.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I2076ea46693a73a04890982bf20e3c633c2767fb
1 parent 3e1e08b commit 524eecc6a2a279d685755d5b39557ebcd78bb2cf
@Javier Almansa Sobrino Javier Almansa Sobrino authored on 21 Aug 2020
Showing 1 changed file
View
lib/libc/snprintf.c