From patchwork Mon Apr 11 13:25:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 8801501 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 405EE9F36E for ; Mon, 11 Apr 2016 13:34:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6544D20306 for ; Mon, 11 Apr 2016 13:34:32 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3B158202F8 for ; Mon, 11 Apr 2016 13:34:31 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1FFA9265B65; Mon, 11 Apr 2016 15:34:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8DFB02657DD; Mon, 11 Apr 2016 15:30:09 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id D9E9B265041; Mon, 11 Apr 2016 15:26:36 +0200 (CEST) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by alsa0.perex.cz (Postfix) with ESMTP id F0C4E260870 for ; Mon, 11 Apr 2016 15:26:30 +0200 (CEST) Received: by mail-yw0-f171.google.com with SMTP id t10so208247641ywa.0 for ; Mon, 11 Apr 2016 06:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=OGGACSUTUEHneoXJYxXC7TrZ+ZnfuWQZ9Agc3fnsnW0=; b=XSYodQznEUPC77b50iM9i1A2O0VWRGnKFJyL/udt46leXrt8zDyGPaGbwaLd7Qzv4q 8riCuzjbMHBBFu0VDbnkJl8hVg7sGcH81rEzECA+sMSKSrd9TMf5oekLy3iQLEr3KPW2 v15aI5w1foViJIhdSnLyAfoepEMnEALvAHL9QR3bGqdGmD/hQxgC4NxVqIYFTfBbU0zU If78gxpqbNuHLJu0BRJRjwwmWsI9awjDanb81eQji+SZl71q82NX2/GEcfl5fzYIHrAx E/xgcalqyawsx7h4osPaVaOxtyWqRQpPbTahy81pt/zVBdjdqZl0XNCrGf0E9K6qNT5F 3Nvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=OGGACSUTUEHneoXJYxXC7TrZ+ZnfuWQZ9Agc3fnsnW0=; b=aSYXZm8iBSPM2miqM/UQFP8N1YjG3i2ZxmRUhdn8c5S0YBfkK+E7ivD7nn6/f9QzDL x0vWdJOyU2B3Mt7SeiyPL/56E5AqUvWnDyUoNI0ArHh9zef7wnKnXw9BZ/1eoWD8E216 K2O8Ip3MG2MPdcDq4FrHa73JYUpv6RG/vTAuqOKB0Ki/DmIQwpUdHPBzqBnv3tQ84zsP 8giQNRAzzKFF2GO6PZaN/L4FNz/aDzIA2tnnfzMjxtZFhuit5rYp6P4s8sItEJl5kfLt Ja8swEQFWIk4AGUFucbaK35DV/o3OWXmvQt3BaShBhr3LO1zXdNGn3b8xdIF78IMIurh xaBw== X-Gm-Message-State: AD7BkJI46EE+GgcSky2O8HQxUy4Kpu/7KERAwvx5UDrHBB0krPXnEHVsSf69oWno4P2FRA== X-Received: by 10.37.101.87 with SMTP id z84mr11507659ybb.101.1460381190281; Mon, 11 Apr 2016 06:26:30 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id p3sm14759710ywc.40.2016.04.11.06.26.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Apr 2016 06:26:29 -0700 (PDT) From: William Breathitt Gray To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, gregkh@linuxfoundation.org Date: Mon, 11 Apr 2016 09:25:52 -0400 Message-Id: <903e7f51989907f3de2159efb99bd65bf3dc30f7.1460379702.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: References: In-Reply-To: References: X-Mailman-Approved-At: Mon, 11 Apr 2016 15:30:00 +0200 Cc: alsa-devel@alsa-project.org, linux-scsi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai , William Breathitt Gray Subject: [alsa-devel] [PATCH 2/4] sound: isa: sscape: Use correct format identifier for size_t X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The 'size' member of a struct firmware is passed to snd_printk with a respective format string using the %d identifier. The 'size' member is of type size_t, but format identifier %d indicates a signed int data type. This patch replaces the %d format identifier with the correct %zu format identifier for size_t data types. Cc: Jaroslav Kysela Cc: Takashi Iwai Signed-off-by: William Breathitt Gray --- sound/isa/sscape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c index 7b248cd..fdcfa29 100644 --- a/sound/isa/sscape.c +++ b/sound/isa/sscape.c @@ -591,7 +591,7 @@ static int sscape_upload_microcode(struct snd_card *card, int version) } err = upload_dma_data(sscape, init_fw->data, init_fw->size); if (err == 0) - snd_printk(KERN_INFO "sscape: MIDI firmware loaded %d KBs\n", + snd_printk(KERN_INFO "sscape: MIDI firmware loaded %zu KBs\n", init_fw->size >> 10); release_firmware(init_fw);