Source-Changes-HG archive

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

[src/trunk]: src/sys/dev drop completely superfluous PRINT() macro



details:   https://anonhg.NetBSD.org/src/rev/44a575c0d18c
branches:  trunk
changeset: 520848:44a575c0d18c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Jan 18 21:59:41 2002 +0000

description:
drop completely superfluous PRINT() macro

diffstat:

 sys/dev/audio.c |  17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diffs (55 lines):

diff -r f19257b8c5d2 -r 44a575c0d18c sys/dev/audio.c
--- a/sys/dev/audio.c   Fri Jan 18 21:01:38 2002 +0000
+++ b/sys/dev/audio.c   Fri Jan 18 21:59:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.144 2001/11/17 05:31:27 perry Exp $        */
+/*     $NetBSD: audio.c,v 1.145 2002/01/18 21:59:41 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1991-1993 Regents of the University of California.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.144 2001/11/17 05:31:27 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.145 2002/01/18 21:59:41 jdolecek Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -213,7 +213,6 @@
        int error;
        mixer_devinfo_t mi;
        int iclass, oclass, props;
-       const char *sep = "";
 
 #ifdef DIAGNOSTIC
        if (hwp == 0 ||
@@ -236,24 +235,20 @@
         }
 #endif
 
-#define        PRINT(str)      do { printf("%s%s", sep, str); sep = ", "; } while (0)
-
        props = hwp->get_props(hdlp);
 
        if (props & AUDIO_PROP_FULLDUPLEX)
-               PRINT(": full duplex");
+               printf(": full duplex");
        else
-               PRINT(": half duplex");
+               printf(": half duplex");
 
        if (props & AUDIO_PROP_MMAP)
-               PRINT("mmap");
+               printf(", mmap");
        if (props & AUDIO_PROP_INDEPENDENT)
-               PRINT("independent");
+               printf(", independent");
 
        printf("\n");
 
-#undef PRINT
-
        sc->hw_if = hwp;
        sc->hw_hdl = hdlp;
        sc->sc_dev = parent;



Home | Main Index | Thread Index | Old Index