Skip to content

Commit c8a6639

Browse files
ikegami-tigaw
authored andcommitted
feat: fix to set perfc feature save argument correctly
Previously incorrect save string poiner set to the argument. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 2506964 commit c8a6639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/feat/feat-nvme.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct temp_thresh_config {
2828
__u8 tmpsel;
2929
__u8 thsel;
3030
__u8 tmpthh;
31-
bool save;
3231
__u8 sel;
3332
};
3433

@@ -150,7 +149,8 @@ static int feat_power_mgmt(int argc, char **argv, struct command *cmd, struct pl
150149
return err;
151150
}
152151

153-
static int perfc_set(struct nvme_dev *dev, __u8 fid, __u32 cdw11, struct perfc_config *cfg)
152+
static int perfc_set(struct nvme_dev *dev, __u8 fid, __u32 cdw11, struct perfc_config *cfg,
153+
bool save)
154154
{
155155
__u32 result;
156156
int err;
@@ -252,7 +252,7 @@ static int feat_perfc(int argc, char **argv, struct command *cmd, struct plugin
252252

253253
if (argconfig_parse_seen(opts, "rvspa") || argconfig_parse_seen(opts, "r4karl") ||
254254
argconfig_parse_seen(opts, "paid"))
255-
err = perfc_set(dev, fid, cdw11, &cfg);
255+
err = perfc_set(dev, fid, cdw11, &cfg, argconfig_parse_seen(opts, "save"));
256256
else
257257
err = feat_get(dev, fid, cdw11, cfg.sel, perfc_feat);
258258

0 commit comments

Comments
 (0)