]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: Use 'unsigned int' instead of 'unsigned'
authorTokunori Ikegami <ikegami.t@gmail.com>
Sat, 29 Jun 2024 07:41:56 +0000 (16:41 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 1 Jul 2024 16:02:42 +0000 (18:02 +0200)
Fix for the checkpatch review error below.
  Error: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme-print.c
nvme-print.h

index 5b016c8f9186c21bcd7f64be597e1ce085d97d6c..3e4f309c7906561c8233aac6d000d4d1e4616289 100644 (file)
@@ -515,7 +515,7 @@ void nvme_show_cmd_set_independent_id_ns(
        nvme_print(id_independent_id_ns, flags, ns, nsid);
 }
 
-void nvme_show_id_ns_descs(void *data, unsigned nsid, enum nvme_print_flags flags)
+void nvme_show_id_ns_descs(void *data, unsigned int nsid, enum nvme_print_flags flags)
 {
        nvme_print(id_ns_descs, flags, data, nsid);
 }
index fa74d7c326194474a9b7d194fdf71a663e0589d5..8d9d2cd82448eba5941915777f593d2efb67b61b 100644 (file)
@@ -212,7 +212,7 @@ void nvme_show_supported_cap_config_log(struct nvme_supported_cap_config_list_lo
 void nvme_show_ctrl_registers(void *bar, bool fabrics, enum nvme_print_flags flags);
 void nvme_show_ctrl_register(void *bar, bool fabrics, int offset, enum nvme_print_flags flags);
 void nvme_show_single_property(int offset, uint64_t prop, enum nvme_print_flags flags);
-void nvme_show_id_ns_descs(void *data, unsigned nsid, enum nvme_print_flags flags);
+void nvme_show_id_ns_descs(void *data, unsigned int nsid, enum nvme_print_flags flags);
 void nvme_show_lba_status(struct nvme_lba_status *list, unsigned long len,
        enum nvme_print_flags flags);
 void nvme_show_list_items(nvme_root_t t, enum nvme_print_flags flags);