Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/scsipi do not use freed xfer in error message...
details: https://anonhg.NetBSD.org/src/rev/311b0809249f
branches: jdolecek-ncq
changeset: 352722:311b0809249f
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Jul 29 09:04:39 2017 +0000
description:
do not use freed xfer in error message in wdc_atapi_get_params()
diffstat:
sys/dev/scsipi/atapi_wdc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 2a7020ec54bc -r 311b0809249f sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c Wed Jul 26 18:12:12 2017 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c Sat Jul 29 09:04:39 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atapi_wdc.c,v 1.123.4.9 2017/06/27 18:36:03 jdolecek Exp $ */
+/* $NetBSD: atapi_wdc.c,v 1.123.4.10 2017/07/29 09:04:39 jdolecek Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.123.4.9 2017/06/27 18:36:03 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.123.4.10 2017/07/29 09:04:39 jdolecek Exp $");
#ifndef ATADEBUG
#define ATADEBUG
@@ -242,9 +242,9 @@
delay(5000);
if (ata_get_params(&chp->ch_drive[drive], AT_WAIT, id) != 0) {
ATADEBUG_PRINT(("wdc_atapi_get_params: ATAPI_IDENTIFY_DEVICE "
- "failed for drive %s:%d:%d: error 0x%x\n",
- device_xname(atac->atac_dev), chp->ch_channel, drive,
- xfer->c_ata_c.r_error), DEBUG_PROBE);
+ "failed for drive %s:%d:%d\n",
+ device_xname(atac->atac_dev), chp->ch_channel, drive),
+ DEBUG_PROBE);
rv = -1;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index