Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern snprintf -> vsnprintf in cpu_setmodel()
details: https://anonhg.NetBSD.org/src/rev/0f46f156b888
branches: trunk
changeset: 328065:0f46f156b888
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Mar 25 12:50:53 2014 +0000
description:
snprintf -> vsnprintf in cpu_setmodel()
now this can actually work
hi christos
diffstat:
sys/kern/kern_cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 602ca1a23578 -r 0f46f156b888 sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c Tue Mar 25 10:44:12 2014 +0000
+++ b/sys/kern/kern_cpu.c Tue Mar 25 12:50:53 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_cpu.c,v 1.64 2014/03/24 20:07:41 christos Exp $ */
+/* $NetBSD: kern_cpu.c,v 1.65 2014/03/25 12:50:53 macallan Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2010, 2012 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.64 2014/03/24 20:07:41 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.65 2014/03/25 12:50:53 macallan Exp $");
#include "opt_cpu_ucode.h"
#include "opt_compat_netbsd.h"
@@ -485,7 +485,7 @@
va_list ap;
va_start(ap, fmt);
- len = snprintf(cpu_model, sizeof(cpu_model), fmt, ap);
+ len = vsnprintf(cpu_model, sizeof(cpu_model), fmt, ap);
va_end(ap);
return len;
}
Home |
Main Index |
Thread Index |
Old Index