]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
ssstc: build plugin not depended on json without json
authorTokunori Ikegami <ikegami.t@gmail.com>
Sat, 21 Dec 2024 07:58:35 +0000 (16:58 +0900)
committerDaniel Wagner <wagi@monom.org>
Fri, 3 Jan 2025 09:21:08 +0000 (10:21 +0100)
ssstc plugin does not use json so no need to check the build dependency.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
plugins/meson.build
plugins/ssstc/ssstc-nvme.c

index 7eaa35a794ff7dc1c96c4c6b0da0064cf3f3a3ef..cddff65948a88214efa8a880e00c4502242b5bc8 100644 (file)
@@ -3,7 +3,6 @@
 if json_c_dep.found()
   sources += [
     'plugins/solidigm/solidigm-nvme.c',
-    'plugins/ssstc/ssstc-nvme.c',
     'plugins/wdc/wdc-nvme.c',
     'plugins/wdc/wdc-utils.c',
   ]
@@ -28,6 +27,7 @@ sources += [
   'plugins/scaleflux/sfx-nvme.c',
   'plugins/seagate/seagate-nvme.c',
   'plugins/shannon/shannon-nvme.c',
+  'plugins/ssstc/ssstc-nvme.c',
   'plugins/toshiba/toshiba-nvme.c',
   'plugins/transcend/transcend-nvme.c',
   'plugins/virtium/virtium-nvme.c',
index 5cbc8f96a35e95914c98422792d0a3c54e914ada..f90ad6054d4aa407bd69eefeb478d0a1dc272354 100644 (file)
@@ -383,7 +383,9 @@ int ssstc_get_add_smart_log(int argc, char **argv, struct command *cmd, struct p
                "(optionally, for the specified namespace), and show it.";
        const char *namespace = "(optional) desired namespace";
        const char *raw = "Dump output in binary format";
+#ifdef CONFIG_JSONC
        const char *json = "Dump output in json format";
+#endif /* CONFIG_JSONC */
 
        struct nvme_additional_smart_log smart_log_add;
        struct nvme_dev *dev;