Skip to content

Commit cf08758

Browse files
committed
nvme: change nvme_show_err parameters order
To change msg to fmt and the variable length arguments. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent e550ee8 commit cf08758

4 files changed

Lines changed: 113 additions & 116 deletions

File tree

nvme-print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ static void nvme_show_cmd_err(const char *msg, bool admin,
534534
nvme_show_status(err);
535535
}
536536

537-
void nvme_show_err(const char *msg, int err)
537+
void nvme_show_err(int err, const char *msg)
538538
{
539539
nvme_show_cmd_err(msg, false, NULL, err);
540540
}

nvme-print.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct print_ops *nvme_get_stdout_print_ops(nvme_print_flags_t flags);
159159
struct print_ops *nvme_get_binary_print_ops(nvme_print_flags_t flags);
160160

161161
void nvme_show_status(int status);
162-
void nvme_show_err(const char *msg, int err);
162+
void nvme_show_err(int err, const char *msg);
163163
void nvme_show_io_cmd_err(const char *msg, struct nvme_passthru_cmd *cmd,
164164
int err);
165165
void nvme_show_admin_cmd_err(const char *msg, struct nvme_passthru_cmd *cmd,

0 commit comments

Comments
 (0)