Make i2s compile with I2S_DEBUG; %x -> %p.
authormglocker <mglocker@openbsd.org>
Sun, 26 Jun 2016 06:48:39 +0000 (06:48 +0000)
committermglocker <mglocker@openbsd.org>
Sun, 26 Jun 2016 06:48:39 +0000 (06:48 +0000)
sys/arch/macppc/dev/i2s.c

index 6cbbf3f..f9d7296 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: i2s.c,v 1.30 2015/09/08 08:29:35 deraadt Exp $        */
+/*     $OpenBSD: i2s.c,v 1.31 2016/06/26 06:48:39 mglocker Exp $       */
 /*     $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $    */
 
 /*-
@@ -46,6 +46,7 @@
 #include <macppc/dev/i2sreg.h>
 #include <macppc/pci/macobio.h>
 
+#define I2S_DEBUG
 #ifdef I2S_DEBUG
 # define DPRINTF(x) printf x 
 #else
@@ -150,7 +151,7 @@ i2s_intr(v)
                mtx_leave(&audio_lock);
                return (0);
        }
-       DPRINTF(("i2s_intr: cmd %x\n", cmd));
+       DPRINTF(("i2s_intr: cmd %p\n", cmd));
 
        c = in16rb(&cmd->d_command);
        status = in16rb(&cmd->d_status);
@@ -185,7 +186,7 @@ i2s_iintr(v)
                mtx_leave(&audio_lock);
                return (0);
        }
-       DPRINTF(("i2s_intr: cmd %x\n", cmd));
+       DPRINTF(("i2s_intr: cmd %p\n", cmd));
 
        c = in16rb(&cmd->d_command);
        status = in16rb(&cmd->d_status);