Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Nuke some printf()s.



details:   https://anonhg.NetBSD.org/src/rev/cbb947258d65
branches:  trunk
changeset: 551540:cbb947258d65
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Sep 08 01:13:04 2003 +0000

description:
Nuke some printf()s.

diffstat:

 sys/dev/scsipi/cd.c |  14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 0f076e41086c -r cbb947258d65 sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Mon Sep 08 00:26:59 2003 +0000
+++ b/sys/dev/scsipi/cd.c       Mon Sep 08 01:13:04 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.188 2003/09/07 22:11:23 mycroft Exp $ */
+/*     $NetBSD: cd.c,v 1.189 2003/09/08 01:13:04 mycroft Exp $ */
 
 /*-
  * Copyright (c) 1998, 2001, 2003 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.188 2003/09/07 22:11:23 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd.c,v 1.189 2003/09/08 01:13:04 mycroft Exp $");
 
 #include "rnd.h"
 
@@ -2215,12 +2215,8 @@
        oflags = page->flags;
        page->flags &= ~CD_PA_SOTC;
        page->flags |= CD_PA_IMMED;
-       if (oflags == page->flags) {
-printf("flags are same; punting\n");
+       if (oflags == page->flags)
                return (0);
-       } else {
-printf("flags are not same; changing\n");
-       }
 
        if (big) {
                _lto2b(0, data.header.big.data_length);
@@ -2423,11 +2419,11 @@
        }
 
        if (bsize == 0) {
-printf("trying to change bsize, but no blk_desc\n");
+printf("cd_setblksize: trying to change bsize, but no blk_desc\n");
                return (EINVAL);
        }
        if (_3btol(bdesc->blklen) == 2048) {
-printf("trying to change bsize, but blk_desc is correct\n");
+printf("cd_setblksize: trying to change bsize, but blk_desc is correct\n");
                return (EINVAL);
        }
                



Home | Main Index | Thread Index | Old Index