aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/vsprintf.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-01-30 16:27:53 +0000
committerKeir Fraser <keir@xensource.com>2007-01-30 16:27:53 +0000
commit57464e1a9c3cb428be95284e6721a04e9a07024e (patch)
tree38a229719d538b5d63b2d983650df0a56ab83565 /xen/common/vsprintf.c
parentf3efbd339f80cdb97562d35d4aa834eb37ea4afb (diff)
downloadxen-57464e1a9c3cb428be95284e6721a04e9a07024e.tar.gz
xen-57464e1a9c3cb428be95284e6721a04e9a07024e.tar.bz2
xen-57464e1a9c3cb428be95284e6721a04e9a07024e.zip
Remove sprintf() from Xen. Use snprintf() and friends.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/vsprintf.c')
-rw-r--r--xen/common/vsprintf.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/xen/common/vsprintf.c b/xen/common/vsprintf.c
index f4b788c403..355305fa57 100644
--- a/xen/common/vsprintf.c
+++ b/xen/common/vsprintf.c
@@ -561,29 +561,6 @@ int scnprintf(char * buf, size_t size, const char *fmt, ...)
}
EXPORT_SYMBOL(scnprintf);
-/**
- * sprintf - Format a string and place it in a buffer
- * @buf: The buffer to place the result into
- * @fmt: The format string to use
- * @...: Arguments for the format string
- *
- * The function returns the number of characters written
- * into @buf. Use snprintf or scnprintf in order to avoid
- * buffer overflows.
- */
-int sprintf(char * buf, const char *fmt, ...)
-{
- va_list args;
- int i;
-
- va_start(args, fmt);
- i=vsnprintf(buf, INT_MAX, fmt, args);
- va_end(args);
- return i;
-}
-
-EXPORT_SYMBOL(sprintf);
-
/*
* Local variables:
* mode: C