]> Gentwo Git Trees - linux/.git/commit
vhost-scsi: fix argument order in tport allocation error message
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 13 Sep 2025 15:40:53 +0000 (08:40 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 15 Sep 2025 22:25:58 +0000 (18:25 -0400)
commita318eb807825d71900e212f5aab3469e86feff8e
tree11d5498d55bd1d5038c72e911fba0ceab4e2ab4d
parent76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c
vhost-scsi: fix argument order in tport allocation error message

The error log in vhost_scsi_make_tport() prints the arguments in the
wrong order, producing confusing output. For example, when creating a
target with a name in WWNN format such as "fc.port1234", the log
looks like:

  Emulated fc.port1234 Address: FCP, exceeds max: 64

Instead, the message should report the emulated protocol type first,
followed by the configfs name as:

  Emulated FCP Address: fc.port1234, exceeds max: 64

Fix the argument order so the error log is consistent and clear.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Message-Id: <20250913154106.3995856-1-alok.a.tiwari@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/vhost/scsi.c