Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys remove {v,}sprintf
details: https://anonhg.NetBSD.org/src/rev/656466ab59fc
branches: trunk
changeset: 328117:656466ab59fc
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 26 18:03:47 2014 +0000
description:
remove {v,}sprintf
diffstat:
sys/kern/subr_prf.c | 36 ++----------------------------------
sys/sys/systm.h | 6 +-----
2 files changed, 3 insertions(+), 39 deletions(-)
diffs (81 lines):
diff -r aebcaa082b99 -r 656466ab59fc sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c Wed Mar 26 18:02:24 2014 +0000
+++ b/sys/kern/subr_prf.c Wed Mar 26 18:03:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.152 2014/01/12 00:29:15 joerg Exp $ */
+/* $NetBSD: subr_prf.c,v 1.153 2014/03/26 18:03:47 christos Exp $ */
/*-
* Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.152 2014/01/12 00:29:15 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.153 2014/03/26 18:03:47 christos Exp $");
#include "opt_ddb.h"
#include "opt_ipkdb.h"
@@ -995,38 +995,6 @@
}
/*
- * sprintf: print a message to a buffer
- */
-int
-sprintf(char *bf, const char *fmt, ...)
-{
- int retval;
- va_list ap;
-
- va_start(ap, fmt);
- retval = kprintf(fmt, TOBUFONLY, NULL, bf, ap);
- va_end(ap);
- if (bf)
- bf[retval] = '\0'; /* nul terminate */
- return retval;
-}
-
-/*
- * vsprintf: print a message to a buffer [already have va_list]
- */
-
-int
-vsprintf(char *bf, const char *fmt, va_list ap)
-{
- int retval;
-
- retval = kprintf(fmt, TOBUFONLY, NULL, bf, ap);
- if (bf)
- bf[retval] = '\0'; /* nul terminate */
- return retval;
-}
-
-/*
* snprintf: print a message to a buffer
*/
int
diff -r aebcaa082b99 -r 656466ab59fc sys/sys/systm.h
--- a/sys/sys/systm.h Wed Mar 26 18:02:24 2014 +0000
+++ b/sys/sys/systm.h Wed Mar 26 18:03:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.261 2014/03/24 20:07:40 christos Exp $ */
+/* $NetBSD: systm.h,v 1.262 2014/03/26 18:03:47 christos Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@@ -214,14 +214,10 @@
void printf(const char *, ...) __printflike(1, 2);
-int sprintf(char *, const char *, ...) __printflike(2, 3);
-
int snprintf(char *, size_t, const char *, ...) __printflike(3, 4);
void vprintf(const char *, va_list) __printflike(1, 0);
-int vsprintf(char *, const char *, va_list) __printflike(2, 0);
-
int vsnprintf(char *, size_t, const char *, va_list) __printflike(3, 0);
int humanize_number(char *, size_t, uint64_t, const char *, int);
Home |
Main Index |
Thread Index |
Old Index