}
}
-#ifdef CONFIG_JSONC
static void netapp_smdevice_json(struct json_object *devices, char *devname,
char *arrayname, char *volname, int nsid, char *nguid,
char *ctrl, char *astate, char *version, unsigned long long lba,
json_array_add_value_object(devices, device_attrs);
}
-#endif /* CONFIG_JSONC */
static void netapp_smdevices_print_verbose(struct smdevice_info *devices,
int count, int format, const char *devname)
}
}
-#ifdef CONFIG_JSONC
static void netapp_smdevices_print_json(struct smdevice_info *devices,
int count, const char *devname)
{
printf("\n");
json_free_object(root);
}
-#else /* CONFIG_JSONC */
-#define netapp_smdevices_print_json(devices, count, devname)
-#endif /* CONFIG_JSONC */
static void netapp_ontapdevices_print_verbose(struct ontapdevice_info *devices,
int count, int format, const char *devname)
}
}
-#ifdef CONFIG_JSONC
static void netapp_ontapdevices_print_json(struct ontapdevice_info *devices,
int count, const char *devname)
{
printf("\n");
json_free_object(root);
}
-#else /* CONFIG_JSONC */
-#define netapp_ontapdevices_print_json(devices, count, devname)
-#endif /* CONFIG_JSONC */
static int nvme_get_ontap_c2_log(int fd, __u32 nsid, void *buf, __u32 buflen)
{