Skip to content

Commit e15c745

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: target: Fix two format specifiers
Use format specifier '%u' to format the u32 data type instead of '%hu'. Link: https://lore.kernel.org/r/[email protected] Cc: Mike Christie <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 15df85e commit e15c745

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/target/target_core_pr.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,7 @@ core_scsi3_decode_spec_i_port(
16371637
}
16381638

16391639
dest_tpg = tmp_tpg;
1640-
pr_debug("SPC-3 PR SPEC_I_PT: Located %s Node:"
1641-
" %s Port RTPI: %hu\n",
1640+
pr_debug("SPC-3 PR SPEC_I_PT: Located %s Node: %s Port RTPI: %u\n",
16421641
dest_tpg->se_tpg_tfo->fabric_name,
16431642
dest_node_acl->initiatorname, dest_rtpi);
16441643

@@ -1675,8 +1674,7 @@ core_scsi3_decode_spec_i_port(
16751674
dest_se_deve = core_get_se_deve_from_rtpi(dest_node_acl,
16761675
dest_rtpi);
16771676
if (!dest_se_deve) {
1678-
pr_err("Unable to locate %s dest_se_deve"
1679-
" from destination RTPI: %hu\n",
1677+
pr_err("Unable to locate %s dest_se_deve from destination RTPI: %u\n",
16801678
dest_tpg->se_tpg_tfo->fabric_name,
16811679
dest_rtpi);
16821680

0 commit comments

Comments
 (0)