smartctl.cpp: Add 'smartctl.pre_release' boolean to JSON output.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5354 4ea69e1a-61f1-4043-bf83-b5c94c648137
pull/134/head
chrfranke 5 months ago
parent ecd6f90165
commit 4517f1cf72
  1. 2
      smartmontools/ChangeLog
  2. 7
      smartmontools/smartctl.cpp

@ -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)

@ -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

Loading…
Cancel
Save