29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
|
From a53a5e1ca98472c32b8f7b91cd69bdd5dfc6c309 Mon Sep 17 00:00:00 2001
|
||
|
|
From: chrfranke <authors@smartmontools.org>
|
||
|
|
Date: Wed, 8 Nov 2017 06:30:44 +0000
|
||
|
|
Subject: [PATCH 009/291] ataprint.cpp: Fix detection of Device Statistics log
|
||
|
|
with 256 sectors (#922).
|
||
|
|
|
||
|
|
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@4604 4ea69e1a-61f1-4043-bf83-b5c94c648137
|
||
|
|
---
|
||
|
|
smartmontools/ChangeLog | 3 +++
|
||
|
|
smartmontools/ataprint.cpp | 2 +-
|
||
|
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/smartmontools/ataprint.cpp b/smartmontools/ataprint.cpp
|
||
|
|
index df42351d..b2f22681 100644
|
||
|
|
--- a/smartmontools/ataprint.cpp
|
||
|
|
+++ b/smartmontools/ataprint.cpp
|
||
|
|
@@ -3687,7 +3687,7 @@ int ataPrintMain (ata_device * device, const ata_print_options & options)
|
||
|
|
bool use_gplog = true;
|
||
|
|
unsigned nsectors = 0;
|
||
|
|
if (gplogdir)
|
||
|
|
- nsectors = GetNumLogSectors(gplogdir, 0x04, false);
|
||
|
|
+ nsectors = GetNumLogSectors(gplogdir, 0x04, true);
|
||
|
|
else if (smartlogdir){ // for systems without ATA_READ_LOG_EXT
|
||
|
|
nsectors = GetNumLogSectors(smartlogdir, 0x04, false);
|
||
|
|
use_gplog = false;
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|