From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B026B1F0E2B; Tue, 11 Feb 2025 12:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739276125; cv=none; b=rO1CKl8AO74VNsw7WC6MqDiRkpTQZGgI6eZyJOkwQ1440/DwIfw4nkGKzmp0QSNH1mDAeHi3NRUSqSuHt0sFAEU5uPxpNi9eUFUdlXAdy+m0qDcVENfVHFXwOgt/NLvaWaK+r5cgD1HRX7GuO+wGrlDgIFpdi9TY6ZbLR8hZeno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739276125; c=relaxed/simple; bh=zoSSmznO7SRSw6TE33qECXNuVo+1epHzg6wm9dkgQc4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QZeN0N9lgs9gaPTFHgVcGJRPtfVMQfG3l2xZpjy74qtXUOMz9VueE1iBd1QuJsg4LLfpULsWDV28e1Xsc/knvZKOOCFliqL+4LiowopT8AhLzcAtFXi/82zZzfD8J6a1v3QVtotirEENC2e+3phM5V9CrDkWABu+/mjiLFzc1LU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NUE4WGa4; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NUE4WGa4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739276124; x=1770812124; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=zoSSmznO7SRSw6TE33qECXNuVo+1epHzg6wm9dkgQc4=; b=NUE4WGa4il3AIBLj/0y4HYO4pJtq5Rz0Q4H8t4zXX0WYEI4TJFFwD52o UHhEB7FhiubxKSmP6wUINGgk125LF9J6hB/UhQydAnb35bST2+ZyiXWky 7UsvWmEDYpSF+hWWwivnnqe5aZya8Beh+BhtnbkkgPn48hSuExzLjckGK 4GbbBlwqTNE9UB9+UdNosN+Qw2nyCYSSE8SYsL3kW0L5hLdiFhbJQDIUP H2wQHHAin5m9a4bKcJQqAmVPUV1kDsunD3Ih8aqvjSPGVQ3AVbwa+SSsw k3AH2x+e6FaRM0Xkx+KkLP/AlUmLwR4OK7TlolfDEwxblipgoz/tlcGSW Q==; X-CSE-ConnectionGUID: nU8F/R5fQ7SHuU2U8mejEg== X-CSE-MsgGUID: BrtafWDQQcye80VcYhUJFQ== X-IronPort-AV: E=McAfee;i="6700,10204,11341"; a="65245721" X-IronPort-AV: E=Sophos;i="6.13,277,1732608000"; d="scan'208";a="65245721" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2025 04:15:23 -0800 X-CSE-ConnectionGUID: 6l/IhbEUTZWS6GsSNhelHA== X-CSE-MsgGUID: r/ZCHScQSI6gP4ESi2u1Fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="117688670" Received: from smile.fi.intel.com ([10.237.72.58]) by orviesa005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2025 04:15:20 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1thpAb-0000000AUx4-02jL; Tue, 11 Feb 2025 14:15:17 +0200 Date: Tue, 11 Feb 2025 14:15:16 +0200 From: Andy Shevchenko To: Tamir Duberstein Cc: Petr Mladek , David Gow , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Andrew Morton , Shuah Khan , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v6 1/2] scanf: convert self-test to KUnit Message-ID: References: <20250210-scanf-kunit-convert-v6-0-4d583d07f92d@gmail.com> <20250210-scanf-kunit-convert-v6-1-4d583d07f92d@gmail.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Feb 11, 2025 at 06:45:07AM -0500, Tamir Duberstein wrote: > On Tue, Feb 11, 2025 at 6:37 AM Petr Mladek wrote: > > On Mon 2025-02-10 13:13:48, Tamir Duberstein wrote: > > > + kunit_printk(KERN_DEBUG, test, "\"%s\", \"%s\" ->", str, fmt); \ > > > > The switch from pr_debug() to kunit_printk() causes printing huge > > amount of messages even when the test passes. > > I'm not able to reproduce this. pr_debug expands to printk(KERN_DEBUG, > ...) which is also what kunit_printk(KERN_DEBUG, ...) expands to. Can > you help me understand how you're testing? You are missing something. https://stackoverflow.com/a/57762255/2511795 -- With Best Regards, Andy Shevchenko