Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1if2u6-0005bs-Va for mharc-qemu-trivial@gnu.org; Wed, 11 Dec 2019 09:23:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34533) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2u2-0005Vd-J5 for qemu-trivial@nongnu.org; Wed, 11 Dec 2019 09:23:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if2u1-0003Nl-FV for qemu-trivial@nongnu.org; Wed, 11 Dec 2019 09:23:46 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:46835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1if2tx-0003HB-UH; Wed, 11 Dec 2019 09:23:42 -0500 Received: by mail-wr1-x442.google.com with SMTP id z7so24127990wrl.13; Wed, 11 Dec 2019 06:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=jYmZJdGApqvWqno72RJiaFqaTJfxdcrNalfWXkHTsRTNBl2/yWVIUZcQodnIBAEgGG zGXkQD4ljkgQHMEkiwXnWl9nhnbVkh78A5wtqJzrjzCNlBbK64/RA2rZLulR3Mj2FpNr LX25NYFtTJFAjRiFsgvN+PuAdyTbuB3xl1wHKPBbENklL6REVYm8HfMeGbjV4LojWjrF zEePCxWJV0ZqhLPXWcCn/isXCIhSQfqw3RRwCTuLqz9xdxLUdxPtKf1w+BMQ8pSKb06f xEy2Fqkp4yT9Wz6J98WgAhW3pxaFDho8i+imHc7te7npPGV5Y4wnYaUiYa8ZqXd3sJf7 gJqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=riicZ6GX5Hvkb+OLPMXl5j25MHIXPen1lpRO70h0r4bKOosXK5D+Chym+3jpKAo4Df MG8MUXXaRF1Ff4uXqLL7RaLg07hCAVsnT1C1S1UobbAthGAVsGNEtwbc9yjvuJR2r8Jb kIo3AGemT5elVf4/mEv3nhw2gyWC1XLFe2ZXpqrE7zdVy47DsRccsSZYoOUnfS+MvC8d id2X0xxUyJ3D7F/bYQWhGdDbU5e7HZmHSxZOjncjNLNSPVla3ylXkvkXWB/ocOeynkV0 QbqrlkkPpcRH6hb8KiIRLAX8AAhdFmYWt+9aHELZe5YUGJnid0GTtF0KNKVOn3f6be2Q U0Hw== X-Gm-Message-State: APjAAAXNjtMVWCZ1HKoPLPkNGaYCiw6H0cwClU826wPfM06M8wQhxQyF UkNLEhwL+tKWeIP7OqQb7Gnat+Jj X-Google-Smtp-Source: APXvYqwu53PGob/6lanO0f+642FFrZJLIaP28NsWQttXCl0moOqq3op+GU1gt9i4S5t96fxJ0nXwkw== X-Received: by 2002:a5d:68cf:: with SMTP id p15mr42915wrw.31.1576074220323; Wed, 11 Dec 2019 06:23:40 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id g23sm2503783wmk.14.2019.12.11.06.23.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2019 06:23:39 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH] vhost-user-scsi: fix printf format warning Date: Wed, 11 Dec 2019 15:23:30 +0100 Message-Id: <1576074210-52834-9-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2019 14:23:49 -0000 From: Marc-André Lureau 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 Signed-off-by: Paolo Bonzini --- contrib/vhost-user-scsi/vhost-user-scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c index 0fc14d7..7a1db16 100644 --- a/contrib/vhost-user-scsi/vhost-user-scsi.c +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c @@ -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; } -- 1.8.3.1