Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic make compile with ATAPI_DEBUG_PROBE (by copying o...
details: https://anonhg.NetBSD.org/src/rev/e7bce72ae801
branches: trunk
changeset: 356746:e7bce72ae801
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Oct 10 16:30:23 2017 +0000
description:
make compile with ATAPI_DEBUG_PROBE (by copying over the code from
atapi_wdc.c), which is on e.g. for i386/amd64 ALL kernels
problem found by hannken@, thanks
diffstat:
sys/dev/ic/mvsata.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r c5462dfc02e8 -r e7bce72ae801 sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c Tue Oct 10 16:04:59 2017 +0000
+++ b/sys/dev/ic/mvsata.c Tue Oct 10 16:30:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsata.c,v 1.37 2017/10/08 21:18:14 joerg Exp $ */
+/* $NetBSD: mvsata.c,v 1.38 2017/10/10 16:30:23 jdolecek Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.37 2017/10/08 21:18:14 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.38 2017/10/10 16:30:23 jdolecek Exp $");
#include "opt_mvsata.h"
@@ -879,8 +879,8 @@
delay(5000);
if (ata_get_params(drvp, AT_WAIT, id) == 0) {
#ifdef ATAPI_DEBUG_PROBE
- log(LOG_DEBUG, "%s:%d: drive %d: cmdsz 0x%x drqtype 0x%x\n",
- device_xname(atac->atac_dev), chp->ch_channel, target,
+ printf("%s drive %d: cmdsz 0x%x drqtype 0x%x\n",
+ device_xname(sc->sc_dev), target,
id->atap_config & ATAPI_CFG_CMD_MASK,
id->atap_config & ATAPI_CFG_DRQ_MASK);
#endif
Home |
Main Index |
Thread Index |
Old Index