From 9f9380d074452804b53e2a30fa2fd44bd0608cd6 Mon Sep 17 00:00:00 2001 From: Shriya Deshmukh Date: Fri, 26 Apr 2024 22:17:02 +0530 Subject: [PATCH] Update Failure msg if FARM TimeSeries - Feature register 0x3 not supported on drive. --- src/logs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/logs.c b/src/logs.c index 1b4e56e..fad9fd6 100644 --- a/src/logs.c +++ b/src/logs.c @@ -1496,7 +1496,8 @@ int get_ATA_Log(tDevice *device, uint8_t logAddress, char *logName, char *fileEx } } //loop and read each page or set of pages, then save to a file - if (SUCCESS == send_ATA_Read_Log_Ext_Cmd(device, logAddress, currentPage, &logBuffer[currentPage * LEGACY_DRIVE_SEC_SIZE], pagesToReadNow * LEGACY_DRIVE_SEC_SIZE, featureRegister)) + ret = send_ATA_Read_Log_Ext_Cmd(device, logAddress, currentPage, &logBuffer[currentPage * LEGACY_DRIVE_SEC_SIZE], pagesToReadNow * LEGACY_DRIVE_SEC_SIZE, featureRegister); + if (ret == SUCCESS) { if (device->deviceVerbosity > VERBOSITY_QUIET) { @@ -1547,7 +1548,8 @@ int get_ATA_Log(tDevice *device, uint8_t logAddress, char *logName, char *fileEx } else { - ret = FAILURE; + if (ret != NOT_SUPPORTED) + ret = FAILURE; logSize = 0; logFromGPL = true; break;