Message ID | 20210608175928.120985240@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3996141jae; Tue, 8 Jun 2021 11:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1ceps8XY3fOBfus8S41FXDx5eb5Gvbgwcp5I2y2ViCqr1kl4eSKse4kXaLunFeoxaC/vi X-Received: by 2002:a17:906:d93:: with SMTP id m19mr12748373eji.177.1623177118611; Tue, 08 Jun 2021 11:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177118; cv=none; d=google.com; s=arc-20160816; b=M77zHWU6BWUo8qN5GpJR9iJbkmX/fxcVCTLBLJML586H8B1yN3y1QU/+0NNDBGFHC3 6vJB3M0M76cm63MwJFjSc0nwDSGPI27gNGsOtOMxURvSUsPBJ8HXwTiYr3MShBKempZ1 UUI9tNLXvJtw6lPL3NevmrMYGM/zikq3FuqwqT2TAkW4j55ntVkW3vW4gsH6JBq5GmTK qhXNup1ieUL3jKbdVJ1HDoyZ8pXHGZZWAeZpZBGXcYzuCHug5/+bsCrSEedsYbHpbvtR kPNlJhxX4iGAKFqdazUGkI6zroqt1+A0CPOD0eq82m7PBM+wB0i65037xaLpfTlTAmAX Y26g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QY3ENXeBZal+FISOKLdRdhhtCCYqlh0SvEEL3UBf9CM=; b=Aamv5SiOYQRtVlEbYkcyL4YgSGWf0BvOrYp+2d1wN6awX6H7V6xfYkIFcZPzm7mtWo BofMa3aP8I/hYyB2FZ0j9Axyb8/5lBG9m3SnV8K28bnkMYxefMKoFLfmtO+JI+NGM/5d 4qu15ONsxLpLm+P3wiGc6UVI6OTjO9r05aWW5v8vf/ANJzzINYrRev9Fqx5CLdLNXFqr qQCnjWFHzzuvLP23lUFojGR0PtX/UmSlambTpHme/fZJ4HgoyI14KvtnUdiDecOEhj3/ pzwIYIXTdsGOuFKIJiQkhVWHi6rGi6Wqi88Cpxbekg8UWGffk3PxwCMNSMEe+E3y+aCx J26w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cyBB/yQ6"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly22si337502ejb.565.2021.06.08.11.31.58; Tue, 08 Jun 2021 11:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="cyBB/yQ6"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234444AbhFHSdb (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:33:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:57970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234440AbhFHScd (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:32:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 58E8A61380; Tue, 8 Jun 2021 18:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177039; bh=RGpMOJ16txcZmIJsuu42MGUiZJmBuqBIh/pHaydqCmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cyBB/yQ6Wp/VsVDMO0N9oL1DWapC9C74uMi3qSsMe5FFN8Ms/7fd/XXh6+j3zlVbO K0CW3hrVpEOxobtdGGIQ8gJKaToZJHGDpsPYdouMTx6pPqnyhywFZVOHYjAqyBF+Zf H+cT08XspUcKZEblT7bZm3zENv/LU3Lg8GO2rXB8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Nathan Chancellor <nathan@kernel.org>, Jiri Kosina <jkosina@suse.cz>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 09/29] HID: i2c-hid: fix format string mismatch Date: Tue, 8 Jun 2021 20:27:03 +0200 Message-Id: <20210608175928.120985240@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175927.821075974@linuxfoundation.org> References: <20210608175927.821075974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 606fd875740c..800c477dd076 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -1157,8 +1157,8 @@ static int i2c_hid_probe(struct i2c_client *client, hid->vendor = le16_to_cpu(ihid->hdesc.wVendorID); hid->product = le16_to_cpu(ihid->hdesc.wProductID); - snprintf(hid->name, sizeof(hid->name), "%s %04hX:%04hX", - client->name, hid->vendor, hid->product); + snprintf(hid->name, sizeof(hid->name), "%s %04X:%04X", + client->name, (u16)hid->vendor, (u16)hid->product); strlcpy(hid->phys, dev_name(&client->dev), sizeof(hid->phys)); ihid->quirks = i2c_hid_lookup_quirk(hid->vendor, hid->product);