From nobody Thu Nov 13 03:20:25 2025 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=1576514998; cv=none; d=zohomail.com; s=zohoarc; b=MHjKK8VivLhKWiVV5nC1yE3rVCGHN9l49xnw+aFOvCdOb/wgyTDX6n+jSTohcN1jiynMuI26fF+5CoZrWhgg2HIeH1/PDAgYAbYh1cbfL6855rxOS+O2i+mhqk7LDEn5n9pytp+TnpXF5KvkQDF0llP1DlRgd9uExFjWgBzquTw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576514998; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=K63pmTJsJNVaIfL7Nos4Kf+E4IBKd6myeBiL51k421LPY8DU7wz+/qdFVZpTxxhWwXHvXkbpuiUFH9UlGcHbSUAxLEwCTgy5Mahi+2WUlvz/fjH8mAYGDyWYNHQnBMNFXwIpV17np2AbEYFeeXO5ICyL1pqY2e4VFwrCUF78e2E= 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 1576514998907960.3794542189414; Mon, 16 Dec 2019 08:49:58 -0800 (PST) Received: from localhost ([::1]:56826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igtZF-00054M-3z for importer@patchew.org; Mon, 16 Dec 2019 11:49:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57074) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igtFN-0005RS-Uv for qemu-devel@nongnu.org; Mon, 16 Dec 2019 11:29:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igtFM-00089Y-Qa for qemu-devel@nongnu.org; Mon, 16 Dec 2019 11:29:25 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:37150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igtFM-000855-KU for qemu-devel@nongnu.org; Mon, 16 Dec 2019 11:29:24 -0500 Received: by mail-wm1-x335.google.com with SMTP id f129so7409078wmf.2 for ; Mon, 16 Dec 2019 08:29:24 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id q68sm19962334wme.14.2019.12.16.08.29.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Dec 2019 08:29:22 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=KzXbvxufQA840q/1TB8VQ7Z4x7UjC7xMOsqydpyuwoo8andOZYZ7WUa1lxwsPrGOVb LyicX9bJXzx7EL1NvAdVt7hOSE78ksbVZhdnZtI6imHrDFvcpQHSdVAqcQ5fwGcycjPa 7OdIYHdv7HdLyG3dJYyLBLjeKqAkz+YawUsEG+sQ1NvbPPoxZJwbKfxxeiUDewkjOLoQ URMfCGVqK6HrY220acInEGpDYUoT/J+ydKx3z5b1rWkXvkV2Y3+QwCeY4+ea/Xwd5aQY 4G59BG1VwSd0a+rCBhNJAjVI1PH5RTn6vYjRZExj/xnFpwRGinyS/aSUcka+vJObudoD Oqrw== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=G3GeihMZT3FWsjutpTGVLlWKTkWWsva27E3p012qRdM=; b=gy0ScnEACpVgIZ0Vc3lJgPpHRDjiH6YrA/CAOfq3KZk9TpdCNkVTJ3+2/NHoEstVnL 5g8FNF5RtiDrEkuauyqz+Yc/DKGB9fVeByWI3vJMgtdI8RLeYoKyOTETDOCE4tiXwGWh JJRllVIhAPbnsUkqN0rYNtl8QulKu836LuO0YZYXElSdQcnMhVt8sWPyjsW+WoNEKE+z wVJ9sTQ9giA3cc6QOYi0WRo+AdLRBDXiFiwze8Q8v4CWZGF9uWjjh1eLWE2IN2UW6J1u NPfos+kKO6XWMErFiBLCCbjeD6spYMUzgTW443f97tvSwSVi4NnddkDeb7j5eYseQv4I hD3Q== X-Gm-Message-State: APjAAAWIAHLttbkZOZlfpItVOTuPXrflf8A+E+jV4oFdJLHuV110sh3S 46myknJZ+bCqIczxB3FfFkD3qAJs X-Google-Smtp-Source: APXvYqzLi1J6h7gnp7ha6J+RLwMSpxfOQ/kHDGaH0RhRiHzjclL69AyB+L/eM3ps3mG6EBHTcF8PjQ== X-Received: by 2002:a7b:ce98:: with SMTP id q24mr29471008wmj.41.1576513763492; Mon, 16 Dec 2019 08:29:23 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 36/62] vhost-user-scsi: fix printf format warning Date: Mon, 16 Dec 2019 17:28:20 +0100 Message-Id: <1576513726-53700-37-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1576513726-53700-1-git-send-email-pbonzini@redhat.com> References: <1576513726-53700-1-git-send-email-pbonzini@redhat.com> 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::335 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: =?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 --- 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