From b916651e58e5778089a1e07b857fa893f662aa80 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 15 Aug 2002 18:57:51 +0000 Subject: [PATCH] Correct the check for whether SMART is enabled. --- sbin/atactl/atactl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c index dfc97876fcac..88cb389ed444 100644 --- a/sbin/atactl/atactl.c +++ b/sbin/atactl/atactl.c @@ -1,4 +1,4 @@ -/* $NetBSD: atactl.c,v 1.17 2002/08/06 01:16:56 soren Exp $ */ +/* $NetBSD: atactl.c,v 1.18 2002/08/15 18:57:51 mycroft Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -389,7 +389,7 @@ is_smart(int silent) status = "status unknown"; retval = 2; } else { - if (inqbuf->atap_cmd_set2 & ATA_CMD2_SMART) { + if (inqbuf->atap_cmd1_en & WDC_CMD1_SMART) { status = "enabled"; retval = 1; } else {