Module Name: src Committed By: chs Date: Sun Aug 8 16:23:40 UTC 2010
Modified Files: src/sys/arch/sh3/dev: adc.c Log Message: make this compile with DIAGNOSTIC. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/sh3/dev/adc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sh3/dev/adc.c diff -u src/sys/arch/sh3/dev/adc.c:1.12 src/sys/arch/sh3/dev/adc.c:1.13 --- src/sys/arch/sh3/dev/adc.c:1.12 Thu Apr 30 05:20:30 2009 +++ src/sys/arch/sh3/dev/adc.c Sun Aug 8 16:23:40 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: adc.c,v 1.12 2009/04/30 05:20:30 nonaka Exp $ */ +/* $NetBSD: adc.c,v 1.13 2010/08/08 16:23:40 chs Exp $ */ /* * Copyright (c) 2003 Valeriy E. Ushakov @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: adc.c,v 1.12 2009/04/30 05:20:30 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: adc.c,v 1.13 2010/08/08 16:23:40 chs Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -141,11 +141,11 @@ csr = ADC_(CSR); if ((csr & SH7709_ADCSR_ADST) != 0) { /* another conversion is in progress?! */ - snprintb(bits, sizeof(buts), SH7709_ADCSR_BITS, csr); + snprintb(bits, sizeof(bits), SH7709_ADCSR_BITS, csr); printf("adc_sample_channel(%d): CSR=%s", chan, bits); cr = ADC_(CR); cr &= ~0x07; /* three lower bits always read as 1s */ - snprintb(bits, sizeof(buts), SH7709_ADCR_BITS, cr); + snprintb(bits, sizeof(bits), SH7709_ADCR_BITS, cr); printf(", CR=%s\n", bits); return (-1); }