Skip to content

Commit

Permalink
tiny-printf: Add print_grouped_ull()
Browse files Browse the repository at this point in the history
This function is used in the bootstage report which may be trigged in TPL
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 code size.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
  • Loading branch information
sjg20 committed Oct 27, 2019
1 parent 1c1c8a3 commit dee74e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tiny-printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 print the upper 32-bits */
printf("%ld ", (ulong)int_val);
}

0 comments on commit dee74e6

Please sign in to comment.