Message ID | 20210608175930.786097798@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3997261jae; Tue, 8 Jun 2021 11:32:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ig9Xad/g7vjzOF62l5h//q0wLr0BczTxGMk7ppL+TjqPwMEbPEAW27PNJdw1PbQqaaHB X-Received: by 2002:a17:906:d150:: with SMTP id br16mr24941181ejb.190.1623177177071; Tue, 08 Jun 2021 11:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177177; cv=none; d=google.com; s=arc-20160816; b=uCiD+GnrwzEvd+MRRvWXXptQRzhqFy59t0d7MRSc9al3coWxOYpy9mxM071720OjBp xdimxgCfsdJ2x///7Yb94Ly5TRnootCDcp7562wN3HrQhXbuX9i/EbfOAKXBsxXXBZgL evPulJU1k45b0zuGl8lNL7KJCrZr3EiJ2fnoXQ2Fr7eiC/nIjnMyfsmNanOKFP5ombpu MbO5VYYwy/i5U8QqlFrzo4hG27SkDpVrzJ3jO4Sbl2dI9lsFwvrZauBvpSxJ2yMngKwY Xm2IfOpKOIaOKslqkZeRMiD3NvC3262pdJAj4cJ6vRIG0XUR/srbqKzhPAhxYV7qJmhQ 1dZA== 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=k/EJzQ4kkNzGI6vtabjtkoImwTOCjlnR1d/wAmwO3OU=; b=aOxFxBxoS+5Cch90GZKbAV7MTRMu+HyFsiTRiPHDdkVQvnBH0DnEmNbY8kONrE0ACk 3GrLNuQPeny9iT7RwSwV6ABUS75gSr0Hssakrojg4BNnbMKO8iT5EeQILK+Fz5u6yUDK /sOUsUJuQXn2XbsAL/7bUe5W4by2zP30EFWMHbbeBzHz3eNTgsXGskwDcFun89Ud+xFD 1A+GtdnEEMRdEGfSY+xwUsNaONSmL8D7rLUNljqZ/PupP5l/Pa8mTlhs+THTZfcltROz ENgjOszzoMuuG+cXf++t6Sxz0JRv/C34tkAuX1wmrdVTm2mW+AqDwjqxDNMTs3EM4ZT2 djRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rpo2Qo10; 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 w6si358667edl.187.2021.06.08.11.32.56; Tue, 08 Jun 2021 11:32:57 -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=Rpo2Qo10; 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 S234549AbhFHSen (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:34:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:57310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbhFHSdS (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:33:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0BC9A613AC; Tue, 8 Jun 2021 18:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177063; bh=YxdeiHOy2hyiCULXUy9RIlLXnXSrI3pEcvAernlVT6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rpo2Qo10xolQDunrtR1kwzlRYRFPoVrc/Q1HnK8d7ahMGtdMSBH+vyAvBJB73Hhaw 7ALOe/Cbyu4KXkJ0oLuK5tzHMeg8tFzFloHZAApZ49PqNII+0H4YMIkp/Ktp7ORB13 IOunS4Erfv440pQMRENHncv8ECzBFrNPJHlXoRc8= 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.14 09/47] HID: i2c-hid: fix format string mismatch Date: Tue, 8 Jun 2021 20:26:52 +0200 Message-Id: <20210608175930.786097798@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175930.477274100@linuxfoundation.org> References: <20210608175930.477274100@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 0294cac4c856..b16bf4358485 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -1092,8 +1092,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);