Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Eliminate the other %:, using vsnprintf f...
details: https://anonhg.NetBSD.org/src/rev/bacbb6290f5e
branches: trunk
changeset: 495458:bacbb6290f5e
user: tv <tv%NetBSD.org@localhost>
date: Fri Jul 28 15:40:24 2000 +0000
description:
Eliminate the other %:, using vsnprintf followed by printf.
diffstat:
sys/arch/atari/dev/ncr5380.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r e8bb19fef03c -r bacbb6290f5e sys/arch/atari/dev/ncr5380.c
--- a/sys/arch/atari/dev/ncr5380.c Fri Jul 28 14:58:01 2000 +0000
+++ b/sys/arch/atari/dev/ncr5380.c Fri Jul 28 15:40:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ncr5380.c,v 1.38 2000/07/28 14:46:37 tv Exp $ */
+/* $NetBSD: ncr5380.c,v 1.39 2000/07/28 15:40:24 tv Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -1952,10 +1952,13 @@
ncr_aprint(struct ncr_softc *sc, char *fmt, ...)
{
va_list ap;
+ char buf[256];
va_start(ap, fmt);
- printf("%s: %:", sc->sc_dev.dv_xname, fmt, ap);
+ vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
+
+ printf("%s: %s", sc->sc_dev.dv_xname, buf);
}
/****************************************************************************
* Start Debugging Functions *
Home |
Main Index |
Thread Index |
Old Index