Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1180545rdb; Sun, 7 Jan 2024 07:13:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdNQn+j5Yj9gvEhJ9Amp90F20tTuIaMTHA11nkoXrRrrag6eO56Fm1mm8MnSJr2jej0OHP X-Received: by 2002:a17:906:6bc8:b0:a28:fe51:8e8d with SMTP id t8-20020a1709066bc800b00a28fe518e8dmr1020385ejs.80.1704640423421; Sun, 07 Jan 2024 07:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704640423; cv=none; d=google.com; s=arc-20160816; b=WY0ZjwwHHqH5xMiocb2VV4ZUXEACid2wxTCu2bhK/Uc2NmGLHWkNY2wMY35Xzku2fV qHksw7mJVx+K0L2z3/yTJYb+f+zt/9haZLtBWknoTYZru2E9nudU3IW7hMsNfb+jbyqL 2XIusM9g6bbcyNyYzL6bDcE8wV4oCZJlcQ2/yu1QjQ8DxkUQpXQmBuXoe8AEnmAeiEhw j0VTS147b5LqoiZQt90Us9gW4iNO9eHmGC+AYXKJ7gX+O/AuVeZ7FJo9itsWyKZ3AHDO F5ay8k1fB1ySuYj2GlyEvNg/JKdyWrgwy73lPrd/jU4OW9F+I/tANbLvbmNGHbko+jYa SUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=gAvUyLbwTLQxCPNVyLW8Ljwu2BMH9A7PFj4L+NlRbkg=; fh=8rlZcc3w8h+5OhDlEMfudHXh3g6Yp/rTapFoisVAVgA=; b=K1eE+V/rcMmJ+mBFwJk6a7qmaQE7Bup9ZimFL7J5QKvwrwx3Prse7kmzZS4TOx7FDb kuvRbcntEDgUmdysh2jpXyJYmeQpBf1YkeNPAvo0SUePK4qiV9n4hrYpj1x7zCMDoygd UaQZCB6hWt0PvJIHDq4tY39eVIX4Tt9265RciyvhTppm45+RWwP5iIQwRWBVyuBcn+j3 xad1GfdD/bCROpaFkc9pE16fHaAfdHOmpaIcuNCSy69kUXtXqlzEeEPmqfhFF53TekM1 5E3UyVnvkeMTvCTDqgxWX4ePUmC8mgdqMNEBh7ClcRwfCiPKAWHa9dNz60MKNRnn0rVr Qjxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alu.unizg.hr header.s=mail header.b=YRB3Faw+; dkim=pass header.i=@alu.unizg.hr header.s=mail header.b="edSH/fKF"; spf=pass (google.com: domain of linux-kernel+bounces-18884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id oz5-20020a170906cd0500b00a28c07c85casi2480547ejb.197.2024.01.07.07.13.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 07:13:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alu.unizg.hr header.s=mail header.b=YRB3Faw+; dkim=pass header.i=@alu.unizg.hr header.s=mail header.b="edSH/fKF"; spf=pass (google.com: domain of linux-kernel+bounces-18884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2E86A1F21851 for ; Sun, 7 Jan 2024 15:13:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3D84134C8; Sun, 7 Jan 2024 15:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alu.unizg.hr header.i=@alu.unizg.hr header.b="YRB3Faw+"; dkim=pass (2048-bit key) header.d=alu.unizg.hr header.i=@alu.unizg.hr header.b="edSH/fKF" X-Original-To: linux-kernel@vger.kernel.org Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 112F413AC7; Sun, 7 Jan 2024 15:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alu.unizg.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alu.unizg.hr Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 421FD6017E; Sun, 7 Jan 2024 16:13:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1704640407; bh=oa+XGhT/ayVSmnqOJ4svklRVu6puchkWx2tSViCPAS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YRB3Faw+O6GsNsP6bB2nDodpQKpY1uC9U4AxmEHJO9t0R5Ep6SVnURkWB251g+1Hf Al/yM8dv9PiC96K1K9ILE+EnFoq1pPLdCdMPJ5ViaNB3Mj6snPUuGVNy9S5k+N3s23 fXQV41x+4KPybN41jAX8QeyINETviRwqzDh/a7AmBbSdwkzfcCGdWzU3YY2DXEoFIE GQy0arEo1DlOaxaCB0cpZEA49KdgxyfCYJDplTYzV03eeXzgBi8/K7BqJeOpXILIpn zVeorPGixB9ZTBBb5s0wB/kKKhQXaXfmXXhGbfNO8kJNV+4XGuyfuDLSVgy+/4lQtc rTRVxnLPN+g4g== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uMOS7E8uQ4Pl; Sun, 7 Jan 2024 16:13:25 +0100 (CET) Received: from defiant.. (unknown [95.168.121.73]) by domac.alu.hr (Postfix) with ESMTPSA id 9574560171; Sun, 7 Jan 2024 16:13:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1704640405; bh=oa+XGhT/ayVSmnqOJ4svklRVu6puchkWx2tSViCPAS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=edSH/fKF0D8WIDroa8qVX5azrRTOjjWl1kBs7rt2G6X+pKfVHIQ7w7zGBEJijsIVD wHw0QCqxUmGkNlCAw5khVasse7f3s89/4IIfmAU08fK/LMfAe0bBaxlf/FJWQYa3dq hOI3J+I/lW4syt2cs4f/xKMwnPsCkUp5Myfto3iu4gp5OPfZ/L1+M8Rngtp9YDsQcR OgtgFzkkJbtf/xOk+KouvMyl1GHy9VmLgXdlZoPurzrGi2F4M/pF0WBwfzGLFzk41s TDAui9Bjh/tP9QTojInacxl/mjowI5bROC81EtBeBZS9wSD2ri+fXEb3N3JSwQ0dqh TJRyIYPbCHjpw== From: Mirsad Todorovac To: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Mark Brown , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jaroslav Kysela , Takashi Iwai , Shuah Khan , Mirsad Todorovac Subject: [PATCH v1 1/4] kselftest: alsa: fix the number of parameters to ksft_exit_fail_msg() Date: Sun, 7 Jan 2024 16:12:16 +0100 Message-Id: <20240107151218.933806-2-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240107151218.933806-1-mirsad.todorovac@alu.unizg.hr> References: <20240107151218.933806-1-mirsad.todorovac@alu.unizg.hr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the number of arguments to error reporting function in the test program as reported in the GCC 13.2.0 warning: mixer-test.c: In function ‘find_controls’: mixer-test.c:169:44: warning: too many arguments for format [-Wformat-extra-args] 169 | ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The number of arguments in call to ksft_exit_fail_msg() doesn't correspond to the format specifiers, so this is adjusted to mimic the sibling calls to the error function. Fixes: b1446bda56456 ("kselftest: alsa: Check for event generation when we write to controls") Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Cc: linux-sound@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mirsad Todorovac --- tools/testing/selftests/alsa/mixer-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/mixer-test.c b/tools/testing/selftests/alsa/mixer-test.c index 23df154fcdd7..208c2170c074 100644 --- a/tools/testing/selftests/alsa/mixer-test.c +++ b/tools/testing/selftests/alsa/mixer-test.c @@ -166,7 +166,7 @@ static void find_controls(void) err = snd_ctl_poll_descriptors(card_data->handle, &card_data->pollfd, 1); if (err != 1) { - ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for %d\n", + ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for card %d: %d\n", card, err); } -- 2.40.1