From: Simon Glass Date: Mon, 14 Oct 2019 16:00:08 -0600 Subject: [U-Boot] [PATCH 2/9] tiny-printf: Add print_grouped_ull() In-Reply-To: <20191014220015.177359-1-sjg@chromium.org> References: <20191014220015.177359-1-sjg@chromium.org> Message-ID: <20191014220015.177359-3-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This function is used in the bootstage report which may be triggered in sPL or TPL. Add a very basic implication of this function so that it builds. There is no attempt to get the formatting right, since this would add too much to code size. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index 632b4249142..430c3255bc5 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -389,3 +389,9 @@ int snprintf(char *buf, size_t size, const char *fmt, ...) return ret; } + +void print_grouped_ull(unsigned long long int_val, int digits) +{ + /* Don't try to ptint the upper 32-bits */ + printf("%ld ", (ulong)int_val); +} -- 2.23.0.700.g56cf767bdb-goog