From patchwork Tue Apr 22 11:42:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masanari Iida X-Patchwork-Id: 4031261 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5246D9F391 for ; Tue, 22 Apr 2014 11:42:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 546F020221 for ; Tue, 22 Apr 2014 11:42:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CE401201ED for ; Tue, 22 Apr 2014 11:42:44 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 927FC261B01; Tue, 22 Apr 2014 13:42:42 +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, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id B5F97261A9F; Tue, 22 Apr 2014 13:42:33 +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 D1467261AB0; Tue, 22 Apr 2014 13:42:32 +0200 (CEST) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by alsa0.perex.cz (Postfix) with ESMTP id 70139261A9F for ; Tue, 22 Apr 2014 13:42:24 +0200 (CEST) Received: by mail-pa0-f52.google.com with SMTP id kx10so851193pab.25 for ; Tue, 22 Apr 2014 04:42:23 -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; bh=d2KXIsyJjbR4xGQnZyPMYsCpI/sScUbGWDRMgsjPfC0=; b=t0k0KvlNekuyff22vXvN5aaf5OFyTDcw4p465Zdhdc1RXdpphYe9w3b6jVfBAqiO97 dLo0/MV+6pa7AGFUDyB46ljTEC5KS9FEcOA+GJjqbp8mqzouAdPa9EkUbfXxiAw+Tl6u oQb7FPYShz+usOwglUaAo0BkzNYlZCCK70+eDKawKxNLQV6BZUr+KqIjTLgp/pJe8Q73 ewbtCDTpNw1yxBNvyz3fajDbnqW/5S8xPg/4jdv9cYP78bNsatUNp2x6GInA1KR7gS5J n0+XIiuxgV9zUMNArw5PdkafPU4Zm6TKie4c0/D9jasJOx3lNlm4XBBoeKH+bDersSRe uuHQ== X-Received: by 10.68.131.202 with SMTP id oo10mr44222422pbb.35.1398166942845; Tue, 22 Apr 2014 04:42:22 -0700 (PDT) Received: from masabert (p386106-omed01.tokyo.ocn.ne.jp. [153.148.65.106]) by mx.google.com with ESMTPSA id y4sm84338575pbk.76.2014.04.22.04.42.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Apr 2014 04:42:21 -0700 (PDT) Received: by masabert (Postfix, from userid 1000) id 554DD6279D; Tue, 22 Apr 2014 20:42:08 +0900 (JST) From: Masanari Iida To: tiwai@suse.de, perex@perex.cz, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Tue, 22 Apr 2014 20:42:05 +0900 Message-Id: <1398166925-26412-1-git-send-email-standby24x7@gmail.com> X-Mailer: git-send-email 2.0.0.rc0.26.g779792a Cc: Masanari Iida Subject: [alsa-devel] [PATCH] sound: core: Fix format string mismatch in seq_midi.c 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 Fix format string mismatch in snd_seq_midisynth_register_port(). Argument type of p is unsigned int. Signed-off-by: Masanari Iida --- sound/core/seq/seq_midi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 3e05c55..a1fd77a 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c @@ -362,13 +362,13 @@ snd_seq_midisynth_register_port(struct snd_seq_device *dev) if (! port->name[0]) { if (info->name[0]) { if (ports > 1) - snprintf(port->name, sizeof(port->name), "%s-%d", info->name, p); + snprintf(port->name, sizeof(port->name), "%s-%u", info->name, p); else snprintf(port->name, sizeof(port->name), "%s", info->name); } else { /* last resort */ if (ports > 1) - sprintf(port->name, "MIDI %d-%d-%d", card->number, device, p); + sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); else sprintf(port->name, "MIDI %d-%d", card->number, device); }