Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnvme/types: Renamve nvme_cmd_get_log_lid to nvme_log_lid #1985

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nvme-wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ int nvme_cli_get_log_page(struct nvme_dev *dev, __u32 xfer_len,
}

int nvme_cli_get_nsid_log(struct nvme_dev *dev, bool rae,
enum nvme_cmd_get_log_lid lid,
enum nvme_log_lid lid,
__u32 nsid, __u32 len, void *log)
{
return do_admin_op(get_nsid_log, dev, rae, lid, nsid, len, log);
}

int nvme_cli_get_log_simple(struct nvme_dev *dev,
enum nvme_cmd_get_log_lid lid,
enum nvme_log_lid lid,
__u32 len, void *log)
{
return do_admin_op(get_log_simple, dev, lid, len, log);
Expand Down
4 changes: 2 additions & 2 deletions nvme-wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ int nvme_cli_get_log_page(struct nvme_dev *dev,
struct nvme_get_log_args *args);

int nvme_cli_get_nsid_log(struct nvme_dev *dev, bool rae,
enum nvme_cmd_get_log_lid lid,
enum nvme_log_lid lid,
__u32 nsid, __u32 len, void *log);
int nvme_cli_get_log_simple(struct nvme_dev *dev,
enum nvme_cmd_get_log_lid lid,
enum nvme_log_lid lid,
__u32 len, void *log);
int nvme_cli_get_log_supported_log_pages(struct nvme_dev *dev, bool rae,
struct nvme_supported_log_pages *log);
Expand Down
2 changes: 1 addition & 1 deletion plugins/inspur/inspur-nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int nvme_get_vendor_log(int argc, char **argv, struct command *cmd, struc

memset(local_mem, 0, BYTE_OF_4K);
err = nvme_get_log_simple(dev_fd(dev),
(enum nvme_cmd_get_log_lid)VENDOR_SMART_LOG_PAGE,
(enum nvme_log_lid)VENDOR_SMART_LOG_PAGE,
sizeof(r1_cli_vendor_log_t), local_mem);
if (!err) {
show_r1_vendor_log((r1_cli_vendor_log_t *)local_mem);
Expand Down