Message ID | 20210608175932.685137830@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp4004930jae; Tue, 8 Jun 2021 11:39:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUo1225zRTm1HtrtIJSTnVNU1M7Oqa2GWvJ4kH5UGjneQnB+ny6TN89a7wyalA12/VRVdn X-Received: by 2002:a17:906:3a8e:: with SMTP id y14mr25032569ejd.153.1623177577288; Tue, 08 Jun 2021 11:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177577; cv=none; d=google.com; s=arc-20160816; b=sFjrcPWFMsetG3MAbSBzfR5/PoRyt2id4olhnrcyQp8/LTwldZ6FGuWWxA5XRVfloB ueC6ze2hzGARrGk/z3FQ+0n8zc8O+0dfsmSpGJGeOfHXHVpDbFj3HWLmIw/VEZmK4FZO KiUu8ZFZPaJIb8HG5F3l0Ya/5HLiZP2MZciaWHspzCMKkccKq8MdJSaGVO6VOFkKgD2o e1nTmpnXIE180wfNKTFndZn/hvAonpAn1AsInUie53JkwnT/F3Gspj1YzcAmkrjbpp91 rROadj4B9RWCIEy1TN2/8d8oOYuLcKQO5U3aUY0nldqBFGOGKYBS+kE6wouZ6MXz0y1X awjw== 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=eUjXra+CQVWwR5vQjyGam1x6qiOkmqkQ36R7UNtFt7o=; b=TdF5RZTdRFk/bwyMUp/J8qXxFuFb5/U+wLNNtG6xVHlLF/IHmqm5WrLOV8YIX30xCG 1OPyP7jialQ7JSaHdoj65keKpn0nm2KleT6t+aEy3jCG9xcvtxyrphGvDHVquoEcaxU8 blnD9vbr4aB4oZt6lglQnzLJ6ref9Mp2P8zruSmHdWj2QXNfHo6dVow7cvl4Bd9PYCOr Sgq6H7lJYoAgqW7QBOptqy09LZCTg4YG0MizQVA5rICw+utKNywKyip8bm+pDTZHMHMF Xl0BqlpOjKYyw9giFs3aSAGZLGwoj61ZkJQftircHIQmx40Nhn/vFuDrCIpiItgSy5ER xQCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sqGGw9N4; 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 f26si395533ejl.276.2021.06.08.11.39.37; Tue, 08 Jun 2021 11:39:37 -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=sqGGw9N4; 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 S234785AbhFHSk5 (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:40:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:36728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235302AbhFHSjo (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:39:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E91C161426; Tue, 8 Jun 2021 18:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177258; bh=fyg7ZKUv2H0Xz88VFwy5HpYHQlPU/7I+rqcSvy2gNsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqGGw9N4oogV4K7S8jI8aJDnU8SUc00icsWrxlQ2uoQHvpqaYng+UdmvTTuGw/4pD RBHfaW03Oauo0nhzixblteHbguMiu+jXn3+dX4CW707Zn/kYDu0d8c0ky8SQD2FKes bSdWIsuytoR9llKO1DpAg8MMP7GAp8y7uGmWpnlw= 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.19 12/58] HID: i2c-hid: fix format string mismatch Date: Tue, 8 Jun 2021 20:26:53 +0200 Message-Id: <20210608175932.685137830@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175932.263480586@linuxfoundation.org> References: <20210608175932.263480586@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 1f8d403d3db4..19f4b807a5d1 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -1160,8 +1160,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);