Module Name:    src
Committed By:   jdolecek
Date:           Tue Oct 10 16:30:23 UTC 2017

Modified Files:
        src/sys/dev/ic: mvsata.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/ic/mvsata.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/dev/ic/mvsata.c
diff -u src/sys/dev/ic/mvsata.c:1.37 src/sys/dev/ic/mvsata.c:1.38
--- src/sys/dev/ic/mvsata.c:1.37	Sun Oct  8 21:18:14 2017
+++ src/sys/dev/ic/mvsata.c	Tue Oct 10 16:30:23 2017
@@ -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 @@ mvsata_atapi_probe_device(struct atapibu
 	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

Reply via email to