Skip to contentSkip to conversation

vhost-user-scsi: fix incorrect print type

PATCH New Zhengui li 1 participant 1 message Oct 19, 2020

lore
Share & tools
lore

Zhengui li

author
#0 lore raw

PATCH 1/1 vhost-user-scsi: fix incorrect print type

The type of input variable is unsigned int
while the printer type is int. So fix incorrect print type.

---
 contrib/vhost-user-scsi/vhost-user-scsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/vhost-user-scsi/vhost-user-scsi.c +1 -1
index 3c91238..1527ffd 100644
@@ -182,7 +182,7 @@ static int handle_cmd_sync(struct iscsi_context *ctx,
         task->iovector_in.niov = in_len;
     }
 
-    g_debug("Sending iscsi cmd (cdb_len=%d, dir=%d, task=%p)",
+    g_debug("Sending iscsi cmd (cdb_len=%d, dir=%u, task=%p)",
          cdb_len, dir, task);
     if (!iscsi_scsi_command_sync(ctx, 0, task, NULL)) {
         g_warning("Error serving SCSI command");
Signature · 1 line
1.8.3.1