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: 8801191 Return-Path: X-Original-To: patchwork-linux-scsi@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 622349F36E for ; Mon, 11 Apr 2016 13:27:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 936E520306 for ; Mon, 11 Apr 2016 13:27:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE7152034F for ; Mon, 11 Apr 2016 13:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932720AbcDKN0n (ORCPT ); Mon, 11 Apr 2016 09:26:43 -0400 Received: from mail-yw0-f178.google.com ([209.85.161.178]:36020 "EHLO mail-yw0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932768AbcDKN0b (ORCPT ); Mon, 11 Apr 2016 09:26:31 -0400 Received: by mail-yw0-f178.google.com with SMTP id o66so116952776ywc.3; 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=JsrYahEJoZYA2GKGsS6gBERqWtu40VqkoXpVpTCQ9QtB9RhgQNa4oaCFroRwGbr6yA WK73ADwnSELpM/463OIcuQSqU03SyEqjByZG2oV937kkHf6tupetluy5MHHYnV9ijSyD d7JqedQGCLTzT3oqrwWuRskSy6PPEjCw7pQRijpsO1yUUUQkVwa6+7ppGixQy6pWx73o zhV9TMEo7mVFYV5U9FwYfyOuTeQWRfi/D8M35KV9w47Seput6UhYhqaqIs/Tjclbnu6n BZRplh4mV4P8M0errdH1yscXWGD0uYvGxlve0V0ybetsXgGymyNnQeOyB/jZp/d5X543 2KSg== X-Gm-Message-State: AD7BkJLHBhLBqhgvhu/5hgicS1qMEefs5zPVFzYvyFVdKVyTcmCQIxW9riCK/gFf12RZrA== 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 Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, William Breathitt Gray , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 2/4] sound: isa: sscape: Use correct format identifier for size_t 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: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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);