X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fvsprintf.h;h=6568854fbe1badc1d106fabba2dcf595667cd087;hb=ea818dbbcd59300b56014ac2d67798a54994eb9b;hp=651077ca4daa8449c76d3fba4ef796e95dd1094e;hpb=bfcc40bb09b05c90cc3b1496abb270eb8aa72134;p=karo-tx-uboot.git diff --git a/include/vsprintf.h b/include/vsprintf.h index 651077ca4d..6568854fbe 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -178,4 +178,15 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); #define vscnprintf(buf, size, fmt, args...) vsprintf(buf, fmt, ##args) #endif /* CONFIG_SYS_VSNPRINTF */ +/** + * print_grouped_ull() - print a value with digits grouped by ',' + * + * This prints a value with grouped digits, like 12,345,678 to make it easier + * to read. + * + * @val: Value to print + * @digits: Number of digiits to print + */ +void print_grouped_ull(unsigned long long int_val, int digits); + #endif