From nobody Sat May 4 23:42:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576074389; cv=none; d=zohomail.com; s=zohoarc; b=IMvceutVMBLBUR0pLjXEazek7wqbms2qZXgPFg3YdOLmHKHKea44kV8bF4sSs2hQ6IXFFK75L0z1SV+URqiGrt55FQ8taC6/jsQjM/ICZ/nLj0LndyddJFeTsLjol5Z2v/uK0d/9sDYbslW77SIQ1MYT1Ed6sNIa50SgunvpmVY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576074389; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=ZEHOPLtuQTQXib1BK1zdejFYwpifRimrYJpVqfKx18eohe6Ki3AHEZpQl6qtz6QLuioCVI5Q+/KdZXsxI5kyGjwxJv/clUdt9++BJsn5l5CoLZRCqVetIyRwxaPSx+SDXBgYFxNSZz10X4S3hs3vocklcND/S5fYFR8uanX/QfU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576074389353407.17754955904; Wed, 11 Dec 2019 06:26:29 -0800 (PST) Received: from localhost ([::1]:43188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2wd-00082k-Lj for importer@patchew.org; Wed, 11 Dec 2019 09:26:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34250) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2u0-0005S9-EF for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:23:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if2tz-0003KG-Ah for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:23:44 -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) 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) 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) From: Paolo Bonzini To: qemu-devel@nongnu.org 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: quoted-printable 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-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 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,-Wforma= t] g_warning("Unable to determine cdb len (0x%02hhX)", cdb[0] >> 5); Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- 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; } =20 --=20 1.8.3.1