Skip to content

Commit ad35010

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 ce97b2d commit ad35010

4 files changed

Lines changed: 114 additions & 117 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, __u8 opcode, int err)
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, 0, err);
540540
}

nvme-print.h

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

163163
void nvme_show_status(int status);
164-
void nvme_show_err(const char *msg, int err);
164+
void nvme_show_err(int err, const char *msg);
165165
void nvme_show_io_cmd_err(const char *msg, __u8 opcode, int err);
166166
void nvme_show_admin_cmd_err(const char *msg, __u8 opcode, int err);
167167
void nvme_show_opcode_status(int status, bool admin, __u8 opcode);

0 commit comments

Comments
 (0)