From: Sebastien Bourdeauducq Date: Mon, 28 May 2012 19:18:25 +0000 (+0200) Subject: software/libbase/vsnprintf: treat %g as %f (temporary hack) X-Git-Tag: 24jan2021_ls180~3148 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d1bc501202d7de0c3e0dd0ce8473423817a710f;p=litex.git software/libbase/vsnprintf: treat %g as %f (temporary hack) --- diff --git a/software/libbase/vsnprintf.c b/software/libbase/vsnprintf.c index a257ab70..57948a6a 100644 --- a/software/libbase/vsnprintf.c +++ b/software/libbase/vsnprintf.c @@ -192,6 +192,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) 16, field_width, precision, flags); continue; + case 'g': case 'f': { int m; double f;