From d12ce43d3b9a32c60a660c3778260743522d059f Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Wed, 17 Mar 2021 17:20:06 +0530 Subject: [PATCH] nvme: fix commenting style Signed-off-by: Gollu Appalanaidu --- nvme.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nvme.c b/nvme.c index 020f1b30..8751ffd4 100644 --- a/nvme.c +++ b/nvme.c @@ -3605,7 +3605,8 @@ static int set_feature(int argc, char **argv, struct command *cmd, struct plugin } if (buf) { - if ((NVME_FEAT_TIMESTAMP == cfg.feature_id) && (0 != cfg.value)) { //if feature ID is 0x0E, get timestamp value by -v option + /* if feature ID is 0x0E, get timestamp value by -v option */ + if ((NVME_FEAT_TIMESTAMP == cfg.feature_id) && (0 != cfg.value)) { cfg.data_len = NVME_FEAT_TIMESTAMP_DATA_SIZE; memcpy(buf, &cfg.value, NVME_FEAT_TIMESTAMP_DATA_SIZE); } @@ -3626,7 +3627,8 @@ static int set_feature(int argc, char **argv, struct command *cmd, struct plugin " file: %s\n", strerror(errno)); goto close_ffd; } - if (NVME_FEAT_TIMESTAMP == cfg.feature_id) { //if feature ID is 0x0E, then change string from file to integer + /* if feature ID is 0x0E, then change string from file to integer */ + if (NVME_FEAT_TIMESTAMP == cfg.feature_id) { number = strtoul(buf, &endptr, STRTOUL_AUTO_BASE); memset(buf, 0, cfg.data_len); cfg.data_len = NVME_FEAT_TIMESTAMP_DATA_SIZE; -- 2.50.1