Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/oea Add missing va_end, from David Binderma...



details:   https://anonhg.NetBSD.org/src/rev/6fc8dcfa6aab
branches:  trunk
changeset: 813704:6fc8dcfa6aab
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Feb 14 18:12:30 2016 +0000

description:
Add missing va_end, from David Binderman in PR 50798.

diffstat:

 sys/arch/powerpc/oea/ofw_consinit.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2208f336b78b -r 6fc8dcfa6aab sys/arch/powerpc/oea/ofw_consinit.c
--- a/sys/arch/powerpc/oea/ofw_consinit.c       Sun Feb 14 18:11:16 2016 +0000
+++ b/sys/arch/powerpc/oea/ofw_consinit.c       Sun Feb 14 18:12:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_consinit.c,v 1.16 2013/05/12 13:23:08 macallan Exp $ */
+/* $NetBSD: ofw_consinit.c,v 1.17 2016/02/14 18:12:30 dholland Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.16 2013/05/12 13:23:08 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_consinit.c,v 1.17 2016/02/14 18:12:30 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -119,6 +119,7 @@
 
        va_start(va, blah);
        len = vsnprintf(buf, sizeof(buf), blah, va);
+       va_end(va);
        OF_write(console_instance, buf, len);
 }
 



Home | Main Index | Thread Index | Old Index