diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index 19ca2fca8511ec0a85a062a5004076d682ac8253..10b4346f6e43104fff8a4c35c912ad4aa3490410 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -2,6 +2,8 @@ $Id$ 2022-04-22 Christian Franke <franke@computer.org> + smartctl.cpp: Add 'smartctl.pre_release' boolean to JSON output. + drivedb.h: - Phison Driven SSDs: PNY ELITE (#1573) - USB: PNY (0x154b:0xf009) (#1573) diff --git a/smartmontools/smartctl.cpp b/smartmontools/smartctl.cpp index 8e07d12c67ac42ab007f730e950a180185849ddf..a390e02c9940daf37f4ac0d9e875772612a51e93 100644 --- a/smartmontools/smartctl.cpp +++ b/smartmontools/smartctl.cpp @@ -4,7 +4,7 @@ * Home page of code is: https://www.smartmontools.org * * Copyright (C) 2002-11 Bruce Allen - * Copyright (C) 2008-21 Christian Franke + * Copyright (C) 2008-22 Christian Franke * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org> * * SPDX-License-Identifier: GPL-2.0-or-later @@ -89,6 +89,11 @@ static void js_initialize(int argc, char **argv, bool verbose) if (ver[2] > 0) jref["version"][2] = ver[2]; +#ifdef SMARTMONTOOLS_RELEASE_DATE + jref["pre_release"] = false; +#else + jref["pre_release"] = true; +#endif #ifdef SMARTMONTOOLS_SVN_REV jref["svn_revision"] = SMARTMONTOOLS_SVN_REV; #endif