Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/dev Turn off some ATAPI debugging output.
details: https://anonhg.NetBSD.org/src/rev/d103f7ad8d56
branches: trunk
changeset: 468000:d103f7ad8d56
user: mhitch <mhitch%NetBSD.org@localhost>
date: Thu Apr 01 16:22:57 1999 +0000
description:
Turn off some ATAPI debugging output.
diffstat:
sys/arch/amiga/dev/idesc.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 1ad3a1c7fe6c -r d103f7ad8d56 sys/arch/amiga/dev/idesc.c
--- a/sys/arch/amiga/dev/idesc.c Thu Apr 01 16:11:45 1999 +0000
+++ b/sys/arch/amiga/dev/idesc.c Thu Apr 01 16:22:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: idesc.c,v 1.37 1999/03/26 07:00:37 mhitch Exp $ */
+/* $NetBSD: idesc.c,v 1.38 1999/04/01 16:22:57 mhitch Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -445,19 +445,25 @@
sc->sc_ide[i].sc_flags |= IDEF_ATAPI;
if (idecommand(&sc->sc_ide[i], 0, 0, 0, 0, ATAPI_SOFT_RST)
!= 0) {
+#ifdef DEBUG_ATAPI
printf("\nATAPI_SOFT_RESET failed for drive %d",
i);
+#endif
continue;
}
if (wait_for_unbusy(sc) != 0) {
+#ifdef DEBUG_ATAPI
printf("\nATAPI wait for unbusy failed");
+#endif
continue;
}
if (idecommand(&sc->sc_ide[i], 0, 0, 0,
sizeof(struct ataparams), ATAPI_IDENTIFY) != 0 ||
wait_for_drq(sc) != 0) {
+#ifdef DEBUG_ATAPI
printf("\nATAPI_IDENTIFY failed for drive %d",
i);
+#endif
continue;
}
len = rp->ide_cyl_lo + rp->ide_cyl_hi * 256;
@@ -774,8 +780,10 @@
break;
#endif
if (++timeout > 10000) {
+#ifdef DEBUG_ATAPI
printf ("idewait timeout status %02x error %02x\n",
status, regs->ide_error);
+#endif
return (-1);
}
delay (1000);
Home |
Main Index |
Thread Index |
Old Index