diff options
author | peter <peter@FreeBSD.org> | 1999-09-19 09:53:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-09-19 09:53:57 +0000 |
commit | 332c7b8346b8ec379f357561438de2ae5a1fd8c9 (patch) | |
tree | ea95e31987ca65f84ed076ff7df38e101bc0ddc1 | |
parent | 9fae78db4fdd76e77e9da362dd8d345e22bf917d (diff) | |
download | FreeBSD-src-332c7b8346b8ec379f357561438de2ae5a1fd8c9.zip FreeBSD-src-332c7b8346b8ec379f357561438de2ae5a1fd8c9.tar.gz |
Fix the "dsp sync" debugging printf that was unconditional. Fix a few
formatting nits/glitches/whatever.
-rw-r--r-- | sys/dev/pcm/dsp.c | 14 | ||||
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/pcm/dsp.c b/sys/dev/pcm/dsp.c index a895d7b..de2318a 100644 --- a/sys/dev/pcm/dsp.c +++ b/sys/dev/pcm/dsp.c @@ -287,9 +287,9 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) printf("AIOSYNC chan 0x%03lx pos %lu unimplemented\n", ((snd_sync_parm *)arg)->chan, ((snd_sync_parm *)arg)->pos); break; - /* - * here follow the standard ioctls (filio.h etc.) - */ + /* + * here follow the standard ioctls (filio.h etc.) + */ case FIONREAD: /* get # bytes to read */ if (rdch && rdch->buffer.dl) chn_dmaupdate(rdch); *arg_i = rdch? rdch->buffer.rl : 0; @@ -310,9 +310,9 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) break; /* - * Finally, here is the linux-compatible ioctl interface - */ - #define THE_REAL_SNDCTL_DSP_GETBLKSIZE _IOWR('P', 4, int) + * Finally, here is the linux-compatible ioctl interface + */ +#define THE_REAL_SNDCTL_DSP_GETBLKSIZE _IOWR('P', 4, int) case THE_REAL_SNDCTL_DSP_GETBLKSIZE: case SNDCTL_DSP_GETBLKSIZE: *arg_i = wrch? wrch->blocksize : 0; /* XXX rdch? */ @@ -331,7 +331,7 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) break; case SNDCTL_DSP_SYNC: - printf("dsp sync\n"); + DEB(printf("dsp sync\n")); splx(s); if (wrch) chn_sync(wrch, wrch->buffer.bufsize - 4); break; diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index a895d7b..de2318a 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -287,9 +287,9 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) printf("AIOSYNC chan 0x%03lx pos %lu unimplemented\n", ((snd_sync_parm *)arg)->chan, ((snd_sync_parm *)arg)->pos); break; - /* - * here follow the standard ioctls (filio.h etc.) - */ + /* + * here follow the standard ioctls (filio.h etc.) + */ case FIONREAD: /* get # bytes to read */ if (rdch && rdch->buffer.dl) chn_dmaupdate(rdch); *arg_i = rdch? rdch->buffer.rl : 0; @@ -310,9 +310,9 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) break; /* - * Finally, here is the linux-compatible ioctl interface - */ - #define THE_REAL_SNDCTL_DSP_GETBLKSIZE _IOWR('P', 4, int) + * Finally, here is the linux-compatible ioctl interface + */ +#define THE_REAL_SNDCTL_DSP_GETBLKSIZE _IOWR('P', 4, int) case THE_REAL_SNDCTL_DSP_GETBLKSIZE: case SNDCTL_DSP_GETBLKSIZE: *arg_i = wrch? wrch->blocksize : 0; /* XXX rdch? */ @@ -331,7 +331,7 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg) break; case SNDCTL_DSP_SYNC: - printf("dsp sync\n"); + DEB(printf("dsp sync\n")); splx(s); if (wrch) chn_sync(wrch, wrch->buffer.bufsize - 4); break; |