Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/dev make this compile with DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/3bf97cafb977
branches:  trunk
changeset: 756949:3bf97cafb977
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 08 16:23:40 2010 +0000

description:
make this compile with DIAGNOSTIC.

diffstat:

 sys/arch/sh3/dev/adc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 3652e308e524 -r 3bf97cafb977 sys/arch/sh3/dev/adc.c
--- a/sys/arch/sh3/dev/adc.c    Sun Aug 08 15:23:28 2010 +0000
+++ b/sys/arch/sh3/dev/adc.c    Sun Aug 08 16:23:40 2010 +0000
@@ -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);
        }



Home | Main Index | Thread Index | Old Index