Skip to content
Snippets Groups Projects
Commit 4363f54a authored by chrfranke's avatar chrfranke
Browse files

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

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5354 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 6a055c1f
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ $Id$ ...@@ -2,6 +2,8 @@ $Id$
2022-04-22 Christian Franke <franke@computer.org> 2022-04-22 Christian Franke <franke@computer.org>
smartctl.cpp: Add 'smartctl.pre_release' boolean to JSON output.
drivedb.h: drivedb.h:
- Phison Driven SSDs: PNY ELITE (#1573) - Phison Driven SSDs: PNY ELITE (#1573)
- USB: PNY (0x154b:0xf009) (#1573) - USB: PNY (0x154b:0xf009) (#1573)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Home page of code is: https://www.smartmontools.org * Home page of code is: https://www.smartmontools.org
* *
* Copyright (C) 2002-11 Bruce Allen * 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> * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
* *
* SPDX-License-Identifier: GPL-2.0-or-later * SPDX-License-Identifier: GPL-2.0-or-later
...@@ -89,6 +89,11 @@ static void js_initialize(int argc, char **argv, bool verbose) ...@@ -89,6 +89,11 @@ static void js_initialize(int argc, char **argv, bool verbose)
if (ver[2] > 0) if (ver[2] > 0)
jref["version"][2] = ver[2]; jref["version"][2] = ver[2];
#ifdef SMARTMONTOOLS_RELEASE_DATE
jref["pre_release"] = false;
#else
jref["pre_release"] = true;
#endif
#ifdef SMARTMONTOOLS_SVN_REV #ifdef SMARTMONTOOLS_SVN_REV
jref["svn_revision"] = SMARTMONTOOLS_SVN_REV; jref["svn_revision"] = SMARTMONTOOLS_SVN_REV;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment