X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fvsprintf.h;h=5624482d573b947fb3d533562bda755d75995853;hb=41eb4e5c31fa0db032a596f00fe925185102d0f7;hp=651077ca4daa8449c76d3fba4ef796e95dd1094e;hpb=71ec92b67c1983a87a8c405d280e2dba1cc0080d;p=oweals%2Fu-boot.git diff --git a/include/vsprintf.h b/include/vsprintf.h index 651077ca4d..5624482d57 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -2,23 +2,7 @@ * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __VSPRINTF_H @@ -178,4 +162,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