Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp863272iol; Thu, 9 Jun 2022 16:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuory8UpLlrX8iAN00XKGgCNIyStZ2XYchIN+n4zPFyWRKlAFI0wDy3phyjdE+9MGAvabz X-Received: by 2002:a17:907:7256:b0:711:dd35:61eb with SMTP id ds22-20020a170907725600b00711dd3561ebmr15756569ejc.445.1654816086581; Thu, 09 Jun 2022 16:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654816086; cv=none; d=google.com; s=arc-20160816; b=XQWJoqRCXR4intPTTgd6RzfDM9QBwULv/tv/uOxIpyEiaX2ve19X119l4twFR2UjO/ dPZPiddSMVJ5MLZhXLFgY/NoDKO1u6VTLwIGbEFFXKH/lYe3yU4mYoPY3VBzfmS4qVRt GfokePpky+gri9/iT6qnmmXZtRVL+SSn+ZiUELTDb0lTfhdWrLyATmBfvGfb+5vgqGhE y4XL2r2JTMJ0gOx2EbFVlwmBVIjJ4d51oSLW0Yi6B2zy8yAKSOn0g0VzKdWCbJ08mibg 5a9kGpUAZAredTOlTkZlAYkSpn1dT+oabhXQ1iSKECX1pR0AYuPwe13MwPuvI/yOezvm cjdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=25alQ5NbvDA/tAT/crdGxszOxkEet+uV+RiKp6teCtQ=; b=WFetBmL0tJMCoRlEVtvPNGLv6jqgwV6qP315i+nooL3fjzFYXvoYviOch0s5cepDLw Kxp/OgCKCVgsYzWNbTpAcJqzRNFHGQbsHTd9HoFoLjoNvj3YBMEwj3D5yCyJZq/OKQvX 8/N2Y0QTArq4SGUfmQN5c9/Z637H5EzOZzzlYJwa8LwT24P0zBmrkQuVkQFi2Kfp/Iwr GdjQ/aPCH7GyoRTrP3MjXqemCfGduF8uWnoUWxHi1VjBEyOoYDhTxPpVfzabHDqR6+XQ S/K3MKnrfmaumQfLMIXZHzs69t/b0BcvfOE2xnhKEmzNA/L8byCFCTvCObBGP6wW+M98 KwLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="oZfJo/SX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a50ee0a000000b0042de92db2b7si6411428eds.625.2022.06.09.16.07.40; Thu, 09 Jun 2022 16:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="oZfJo/SX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345057AbiFIWVE (ORCPT + 99 others); Thu, 9 Jun 2022 18:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345669AbiFIWUq (ORCPT ); Thu, 9 Jun 2022 18:20:46 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B217A7E3B for ; Thu, 9 Jun 2022 15:20:41 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id q1-20020a17090a1b0100b001e8884afce1so265919pjq.7 for ; Thu, 09 Jun 2022 15:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=25alQ5NbvDA/tAT/crdGxszOxkEet+uV+RiKp6teCtQ=; b=oZfJo/SXd3Qwc4Nv44GXKhWDAFTO95PgXKfM9e9BiPA93gnZilAa51s/ZcMgeZyQDX bdQWpsU2Iq0YRK8nhoojrl6Ovztg/h1fX8YAfPzB2dwLHljaWKbdC8Mk4yXY/4KToKYJ ovK2hyHWLN7o69TaNinVFAZmPIf4qo8PHxZBtzNCHZvyhMz5aDyGPm8IzfmTRY3xhkY5 HV52VK6dmyAZeje85nLNYwU1K6dOCF/suK14Mfn4D1Y16vY/jjL7/9lAyFEiDPQ1QSGP J6zMvdrdFc5DFPuif5nPyA2QWjOTwZ7NUnTVPFwq/IivldY6hoaIhzn4fUtrg8kNe7N/ zK6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=25alQ5NbvDA/tAT/crdGxszOxkEet+uV+RiKp6teCtQ=; b=XH6AaysYr8NlSwDuduaF06Ry9z1aCCm12UxQsbSbUqfwPI/agdk/8pHJkHn4bD1qek waUoJlRP9Vo4uvK5eWdUJlfE18g8bNzfM+yMlpgrMObm4hEBPNAkQrN6C+5GfMQx/ZVE 0SL4QeSMh/GPF9ihrfXpA1xQTd57XapmlYePi4NrqGkYPtF72hh5RiYSBhXk40LscWXL 7x6j7apwPP/+tf8r0P65wgHKU7B7XdJ4UYUqUhSD1sWs2acw6EzTPgThOTYeFbxbWxL1 34yZLeOSb6FZRrfaBZY47tLQdgTrumJaGSq5sLatnSeMEAO7wETEQiU9xFs4kU68T+02 22FQ== X-Gm-Message-State: AOAM531WQHEowDTGQUHNPDMhE1FwtGYIQqmVhTFecGQ3JgC2ZJgR5JM4 FoeRDwZnQQ5QXzpLs7Hg5wRWLfTS X-Received: from fawn.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5795]) (user=morbo job=sendgmr) by 2002:a17:902:cf06:b0:161:53b6:474d with SMTP id i6-20020a170902cf0600b0016153b6474dmr41957402plg.63.1654813240658; Thu, 09 Jun 2022 15:20:40 -0700 (PDT) Date: Thu, 9 Jun 2022 22:16:28 +0000 In-Reply-To: <20220609221702.347522-1-morbo@google.com> Message-Id: <20220609221702.347522-10-morbo@google.com> Mime-Version: 1.0 References: <20220609221702.347522-1-morbo@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH 09/12] ALSA: seq: use correct format characters From: Bill Wendling To: isanbard@gmail.com Cc: Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Phillip Potter , Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jan Kara , Andrew Morton , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jaroslav Kysela , Takashi Iwai , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ross Philipson , Daniel Kiper , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bill Wendling When compiling with -Wformat, clang emits the following warnings: sound/core/seq/seq_clientmgr.c:2414:22: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] snd_iprintf(buffer, msg); ^~~ Use a string literal for the format string. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Bill Wendling --- sound/core/seq/seq_clientmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index 2e9d695d336c..2340f3e14eeb 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c @@ -2411,7 +2411,7 @@ static void snd_seq_info_dump_subscribers(struct snd_info_buffer *buffer, up_read(&group->list_mutex); return; } - snd_iprintf(buffer, msg); + snd_iprintf(buffer, "%s", msg); list_for_each(p, &group->list_head) { if (is_src) s = list_entry(p, struct snd_seq_subscribers, src_list); -- 2.36.1.255.ge46751e96f-goog