Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CC51EE6457 for ; Fri, 15 Sep 2023 10:15:13 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3E890AE8; Fri, 15 Sep 2023 12:14:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3E890AE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1694772911; bh=Yoyoia96zFf7pc3EkO+XUpKhVWsPgcx6Hula+GPXspo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LKbk6JPT55hOlQja4639pOeJFESMR+awDj7OgQHYy0BeSeTmjMHuApe17+iq55cvO sxuQ5VDBvYOE58yVa4UDgS/H4m6rlAyC89ajrvPpqlIccsIDODdzj6juokxiLf2Ky5 B/unTZCneOwNrlkgPrU2anb2gTLLgGuzjQ9xRrmc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 800BDF80552; Fri, 15 Sep 2023 12:14:15 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 09479F80552; Fri, 15 Sep 2023 12:14:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4A5FFF8055A; Fri, 15 Sep 2023 12:14:12 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 77F9DF8007C for ; Fri, 15 Sep 2023 12:14:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 77F9DF8007C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.a=rsa-sha256 header.s=fm2 header.b=FM6OtPPH; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=F40xsTRk Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 529723200909; Fri, 15 Sep 2023 06:14:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 15 Sep 2023 06:14:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1694772845; x= 1694859245; bh=+/9n243Kd+TJF7GWxzWl3//BhNaA0LIy0GnM5MVTSWE=; b=F M6OtPPHimjWzFLoedmw9V/BZifR/dw2rrUzvYYoRiLgkQ6yGrgt6QXyczaW9p1eA J+9XZXR80rRQotIVluXvPzDAAi9JxczocY11uONV6QdbN/5WKqMQB1sRtPofVz8t RXdd88VuM/AVQ9rfKvugQSAl37XM5pEJIjINgQOa0wq0DgG05OWoZdOxTcB2a9t5 XwUUfHG2uw+wjPobqVl+ZvKa03CmWilW7RHCgTFLYOWJGKn/VhgJo9/Ui9L8ea0b bjstOIHPvdOPPV0yBCWdAWX09dHZH8rSa+3/ezzVawjhT81/F+1GtBLyh+itAS+M eGOkn3IjeiL4Rg8hezDfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1694772845; x=1694859245; bh=+/9n243Kd+TJF 7GWxzWl3//BhNaA0LIy0GnM5MVTSWE=; b=F40xsTRkxCfTK35a3z6KrKi5X6M8O m+JJq/0iXxTaV2V/S1bX4aQmUEZg9Kb5cOS8lsAsaHSd/PiqwCttKfpNv693Ra34 ppmlVKXz7Hp2SGsBeE6h6igr6hbHVhOMiylr6il27M6zqNXW0G/CZgft6G1H39Hb 7B5vw7FFooqFWZOW21142FkLIoyrfqG486vwOJFIITIRNDkU7NtKyKUwfnyscg2V 5l32c6Q8OKuWXqp1mWV7AbVIS3ju66ZWrZ5dON4k1q5RwGmFH6jUXNnrHTyu17+G xvJzkoPgqMGWMsulYBrRCg2fcwknpOMiqNcmNzaaAwIDcCXrmXpOPY9CQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejvddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfgrkhgr shhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhird hjpheqnecuggftrfgrthhtvghrnhephefhhfettefgkedvieeuffevveeufedtlefhjeei ieetvdelfedtgfefuedukeeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Sep 2023 06:14:04 -0400 (EDT) Date: Fri, 15 Sep 2023 19:14:02 +0900 From: Takashi Sakamoto To: Takashi Iwai Cc: alsa-devel@alsa-project.org Subject: Re: [PATCH 11/13] ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names Message-ID: <20230915101402.GB157572@workstation.local> Mail-Followup-To: Takashi Iwai , alsa-devel@alsa-project.org References: <20230915082802.28684-1-tiwai@suse.de> <20230915082802.28684-12-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915082802.28684-12-tiwai@suse.de> Message-ID-Hash: SQ7QSN6M5MZ5HSHA4TSO6JDGVQ5F2FW2 X-Message-ID-Hash: SQ7QSN6M5MZ5HSHA4TSO6JDGVQ5F2FW2 X-MailFrom: o-takashi@sakamocchi.jp X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi, On Fri, Sep 15, 2023 at 10:28:00AM +0200, Takashi Iwai wrote: > The compile warnings at filling MIDI stream name strings are all > false-positive; the number of streams can't go so high. > > For suppressing the warning, replace snprintf() with scnprintf(). > As stated in the above, truncation doesn't matter. > > Signed-off-by: Takashi Iwai > --- > sound/firewire/bebob/bebob_midi.c | 6 +++--- > sound/firewire/dice/dice-midi.c | 4 ++-- > sound/firewire/digi00x/digi00x-midi.c | 14 +++++++------- > sound/firewire/fireface/ff-midi.c | 4 ++-- > sound/firewire/fireworks/fireworks_midi.c | 4 ++-- > sound/firewire/motu/motu-midi.c | 4 ++-- > sound/firewire/oxfw/oxfw-midi.c | 6 +++--- > sound/firewire/tascam/tascam-midi.c | 12 ++++++------ > 8 files changed, 27 insertions(+), 27 deletions(-) Reviewed-by: Takashi Sakamoto Tested-by: Takashi Sakamoto Thanks Takashi Sakamoto