Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5273719rwd; Mon, 5 Jun 2023 00:43:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HnHVqVUfqmly4f9HPW9896VwUQ5La2Cg2hq3OCM8b6gNhocFVv/MlIF5WfHQb+Dp03fJw X-Received: by 2002:a05:6808:6186:b0:394:31e1:41a1 with SMTP id dn6-20020a056808618600b0039431e141a1mr7751043oib.6.1685951028816; Mon, 05 Jun 2023 00:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685951028; cv=none; d=google.com; s=arc-20160816; b=o/zD/ayD0DH696ETObmOkLXBt/rMsMc0R5go4eh+/UW+1k3P8KQIfe4lCsucTFMyo3 O5KcDE8FIJMA5ik/Via1fmusydxL12jIlnWLLTfBDhcYOuUtbFkH3SkiYc80sdv4sWoM H5fViHGd18PIHA4GfxNxsKVZqgJS9fZfEUmZbQLZ/2iYP4tu96J71lulI3n5ZYkOK6Dc Q94AeLDTyjJvJsm2/B0ZON/fKKCTg++beWFZ3AsLK6Z74hrOqoD0PdCUj5ixTpJPszcz Aiy4iNRwdLJZ9My/nXQQjB3oEgvzYaQmgHAPt1Wr49Jfkt1ePh+o6BTQ7gA0ctDB3CN+ iIkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=VvobikAyYLd5tNbqhgR0HiS99+mLLI7sqkpLdjdt9Xg=; b=YAkAr0gZzZo1GV2TqYSEPCXUlAotxlSVM17ygYQoePwqjmGgmANamHzyPus3MdhKU9 zrOudN3UhaRn09l4l1twZgq7Ro3WhHx8tPR0ECpBsYAtqGxes6Qxv3fH+tfzt2/pAe8S TXNPbBgairzLOA/PhfDaaDIIMYxuJfKOkzoRD+UKzaDScG+4+2bDt20+Zr4/1QdqWwbc AEvrAQcWyS4Jo6af9dKXZh13gSrnbxuPSAcvjbMkNwxxDYJBQyOR1B/v5REdAH6Y3ZqD fqzWgcUxLiNtPPWR7NTEInjEz4X37cFfrq1frfuBmDXYH+fEHNbwlDhf4623dwSzNvuG 4r3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hbrZ7RHt; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l188-20020a633ec5000000b00524eef20da6si5220908pga.642.2023.06.05.00.43.36; Mon, 05 Jun 2023 00:43:48 -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=@suse.de header.s=susede2_rsa header.b=hbrZ7RHt; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231363AbjFEHQ1 (ORCPT + 99 others); Mon, 5 Jun 2023 03:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjFEHQX (ORCPT ); Mon, 5 Jun 2023 03:16:23 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01987E9; Mon, 5 Jun 2023 00:16:05 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id ADBEC21B1F; Mon, 5 Jun 2023 07:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1685949364; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VvobikAyYLd5tNbqhgR0HiS99+mLLI7sqkpLdjdt9Xg=; b=hbrZ7RHtTFh3lFSwfJewIoVWFCNd9Px6YYoyfhk7e/uh9RWcNA/giRTxp9+hQPPd75w85v 1DPwh8BysAYVNAay9JCa0zpKgcM443KdZ6Ok/xg8jqV4a1Pn8+srPcKITlOGnMatARggA1 9anQs9brs8F5xPY83o5oIRM3YboqzXw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1685949364; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VvobikAyYLd5tNbqhgR0HiS99+mLLI7sqkpLdjdt9Xg=; b=Pw4S27pJNwrpqHa1bM5XY4yVGTEztYBGKUXEq/wFpQjP9Sjzr+7hb0QVLaTIe330wmNr0Y zUSYVvThQZsLx6CQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7CABD139C7; Mon, 5 Jun 2023 07:16:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GzdUHbSLfWRcZgAAMHmgww (envelope-from ); Mon, 05 Jun 2023 07:16:04 +0000 Date: Mon, 05 Jun 2023 09:16:04 +0200 Message-ID: <871qiqjs5n.wl-tiwai@suse.de> From: Takashi Iwai To: Mirsad Goran Todorovac Cc: Mark Brown , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai , Shuah Khan Subject: Re: [PATCH v1 1/1] selftests: alsa: pcm-test: Fix compiler warnings about the format In-Reply-To: <20230524191528.13203-1-mirsad.todorovac@alu.unizg.hr> References: <20230524191528.13203-1-mirsad.todorovac@alu.unizg.hr> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, 24 May 2023 21:15:29 +0200, Mirsad Goran Todorovac wrote: > > GCC 11.3.0 issues warnings in this module about wrong sizes of format > specifiers: > > pcm-test.c: In function ?test_pcm_time?: > pcm-test.c:384:68: warning: format ?%ld? expects argument of type ?long int?, but argument 5 \ > has type ?unsigned int? [-Wformat=] > 384 | snprintf(msg, sizeof(msg), "rate mismatch %ld != %ld", rate, rrate); > pcm-test.c:455:53: warning: format ?%d? expects argument of type ?int?, but argument 4 has \ > type ?long int? [-Wformat=] > 455 | "expected %d, wrote %li", rate, frames); > pcm-test.c:462:53: warning: format ?%d? expects argument of type ?int?, but argument 4 has \ > type ?long int? [-Wformat=] > 462 | "expected %d, wrote %li", rate, frames); > pcm-test.c:467:53: warning: format ?%d? expects argument of type ?int?, but argument 4 has \ > type ?long int? [-Wformat=] > 467 | "expected %d, wrote %li", rate, frames); > > Simple fix according to compiler's suggestion removed the warnings. > > Signed-off-by: Mirsad Goran Todorovac Applied now. Thanks. Takashi