static int wdc_cap_diag(int argc, char **argv, struct command *command,
struct plugin *plugin)
{
- char *desc = "Capture Diagnostics Log.";
- char *file = "Output file pathname.";
+ const char *desc = "Capture Diagnostics Log.";
+ const char *file = "Output file pathname.";
char f[PATH_MAX] = {0};
int fd;
static int wdc_drive_log(int argc, char **argv, struct command *command,
struct plugin *plugin)
{
- char *desc = "Capture Drive Log.";
- char *file = "Output file pathname.";
+ const char *desc = "Capture Drive Log.";
+ const char *file = "Output file pathname.";
char f[PATH_MAX] = {0};
int fd;
struct config {
static int wdc_get_crash_dump(int argc, char **argv, struct command *command,
struct plugin *plugin)
{
- char *desc = "Get Crash Dump.";
- char *file = "Output file pathname.";
+ const char *desc = "Get Crash Dump.";
+ const char *file = "Output file pathname.";
int fd;
int ret;
struct config {
static int wdc_purge(int argc, char **argv,
struct command *command, struct plugin *plugin)
{
- char *desc = "Send a Purge command.";
+ const char *desc = "Send a Purge command.";
char *err_str;
int fd;
int ret;
static int wdc_purge_monitor(int argc, char **argv,
struct command *command, struct plugin *plugin)
{
- char *desc = "Send a Purge Monitor command.";
+ const char *desc = "Send a Purge Monitor command.";
int fd;
int ret;
__u8 output[WDC_NVME_PURGE_MONITOR_DATA_LEN];
static int wdc_smart_add_log(int argc, char **argv, struct command *command,
struct plugin *plugin)
{
- char *desc = "Retrieve additional performance statistics.";
- char *interval = "Interval to read the statistics from [1, 15].";
+ const char *desc = "Retrieve additional performance statistics.";
+ const char *interval = "Interval to read the statistics from [1, 15].";
int fd;
int ret;