From 0505a9e28a3cad563776ff52442e3af45190a93f Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 28 Jul 2000 15:40:24 +0000 Subject: [PATCH] Eliminate the other %:, using vsnprintf followed by printf. --- sys/arch/atari/dev/ncr5380.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/atari/dev/ncr5380.c b/sys/arch/atari/dev/ncr5380.c index bccdd6134daf..818a9ae097b1 100644 --- a/sys/arch/atari/dev/ncr5380.c +++ b/sys/arch/atari/dev/ncr5380.c @@ -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 @@ static void 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 *