mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
vhost-user-scsi: fix printf format warning
Fixes: ../contrib/vhost-user-scsi/vhost-user-scsi.c:118:57: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] g_warning("Unable to determine cdb len (0x%02hhX)", cdb[0] >> 5); Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a85d0bf361
commit
3819af6e6a
@ -115,7 +115,7 @@ static int get_cdb_len(uint8_t *cdb)
|
||||
case 4: return 16;
|
||||
case 5: return 12;
|
||||
}
|
||||
g_warning("Unable to determine cdb len (0x%02hhX)", cdb[0] >> 5);
|
||||
g_warning("Unable to determine cdb len (0x%02hhX)", (uint8_t)(cdb[0] >> 5));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user