Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Use vprintf() rather than the non-standar...



details:   https://anonhg.NetBSD.org/src/rev/1ac128f1cfd5
branches:  trunk
changeset: 485900:1ac128f1cfd5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 08 18:22:29 2000 +0000

description:
Use vprintf() rather than the non-standard %: format.

diffstat:

 sys/arch/i386/i386/apm.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 39c7fb861d45 -r 1ac128f1cfd5 sys/arch/i386/i386/apm.c
--- a/sys/arch/i386/i386/apm.c  Mon May 08 17:53:24 2000 +0000
+++ b/sys/arch/i386/i386/apm.c  Mon May 08 18:22:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apm.c,v 1.48 2000/04/28 04:48:51 thorpej Exp $ */
+/*     $NetBSD: apm.c,v 1.49 2000/05/08 18:22:29 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -279,10 +279,13 @@
 {
        va_list ap;
 
+       printf("APM ");
+
        va_start(ap, regs);
-       printf("APM %:: %s (0x%x)\n", str, ap, /* XXX cgd */
-           apm_strerror(APM_ERR_CODE(regs)), regs->AX);
+       vprintf(str, ap);                       /* XXX cgd */
        va_end(ap);
+
+       printf(": %s (0x%x)\n", apm_strerror(APM_ERR_CODE(regs)), regs->AX);
 }
 
 #ifdef APM_POWER_PRINT



Home | Main Index | Thread Index | Old Index