From: mglocker Date: Sun, 26 Jun 2016 06:48:39 +0000 (+0000) Subject: Make i2s compile with I2S_DEBUG; %x -> %p. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=74be753d31e1035f908abf264f0da86273c144a7;p=openbsd Make i2s compile with I2S_DEBUG; %x -> %p. --- diff --git a/sys/arch/macppc/dev/i2s.c b/sys/arch/macppc/dev/i2s.c index 6cbbf3f4c23..f9d72961379 100644 --- a/sys/arch/macppc/dev/i2s.c +++ b/sys/arch/macppc/dev/i2s.c @@ -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 #include +#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);