From 3bc55fd81101365a047c97bf0654de90fe0c15f1 Mon Sep 17 00:00:00 2001 From: dpgilbert <dpgilbert@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Thu, 12 Oct 2023 05:20:54 +0000 Subject: [PATCH] scsiprint.cpp : misplaced else corrupted the output of the Format Status log page git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5555 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/ChangeLog | 5 +++++ smartmontools/scsiprint.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index adbe3c887..f6d5f3d98 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -1,5 +1,10 @@ $Id$ +2023-10-12 Douglas Gilbert <dgilbert@interlog.com> + + scsiprint.cpp : misplaced else corrupted the output of the Format + Status log page. + 2023-09-16 Oleksii Samorukov <samm@os2.kiev.ua> CI: export SOURCE_DATE_EPOCH on macOS as tools are expecting it as an diff --git a/smartmontools/scsiprint.cpp b/smartmontools/scsiprint.cpp index 009dfe6e9..dab29bacc 100644 --- a/smartmontools/scsiprint.cpp +++ b/smartmontools/scsiprint.cpp @@ -2273,7 +2273,7 @@ scsiPrintFormatStatus(scsi_device * device) jout("%s = %" PRIu64 "\n", jout_str, ull); jglb[jname][jglb_str] = ull; } - } else + } num -= pl; ucp += pl; } -- GitLab