diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-29 21:16:02 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-29 21:16:02 +0000 |
commit | 37d690f32810e3ce57f5c8e351e9ac5854e9b96f (patch) | |
tree | 812514a9ff75a0b48043231917ca597af9692c60 /xen/common/vsprintf.c | |
parent | 1abb530930be6fffbdc13ec727e4512571ff95ea (diff) | |
download | xen-37d690f32810e3ce57f5c8e351e9ac5854e9b96f.tar.gz xen-37d690f32810e3ce57f5c8e351e9ac5854e9b96f.tar.bz2 xen-37d690f32810e3ce57f5c8e351e9ac5854e9b96f.zip |
Remove unused implementation of vsprintf().
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/vsprintf.c')
-rw-r--r-- | xen/common/vsprintf.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/xen/common/vsprintf.c b/xen/common/vsprintf.c index 3ed7b7052a..f4b788c403 100644 --- a/xen/common/vsprintf.c +++ b/xen/common/vsprintf.c @@ -182,15 +182,6 @@ static char *number( tmp[i++]='0'; else while (num != 0) tmp[i++] = digits[do_div(num,base)]; -#if 0 - else - { - /* XXX KAF: force unsigned mod and div. */ - unsigned long long num2=(unsigned long long)num; - unsigned int base2=(unsigned int)base; - while (num2 != 0) { tmp[i++] = digits[num2%base2]; num2 /= base2; } - } -#endif if (i > precision) precision = i; size -= precision; @@ -571,26 +562,6 @@ int scnprintf(char * buf, size_t size, const char *fmt, ...) EXPORT_SYMBOL(scnprintf); /** - * vsprintf - Format a string and place it in a buffer - * @buf: The buffer to place the result into - * @fmt: The format string to use - * @args: Arguments for the format string - * - * The function returns the number of characters written - * into @buf. Use vsnprintf or vscnprintf in order to avoid - * buffer overflows. - * - * Call this function if you are already dealing with a va_list. - * You probably want sprintf instead. - */ -int vsprintf(char *buf, const char *fmt, va_list args) -{ - return vsnprintf(buf, INT_MAX, fmt, args); -} - -EXPORT_SYMBOL(vsprintf); - -/** * sprintf - Format a string and place it in a buffer * @buf: The buffer to place the result into * @fmt: The format string to use |