Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp747047ybl; Wed, 28 Aug 2019 04:52:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQZq5QIs1u82pTRggYNa8r9NkTuJD2IfXkKPZZUMep10LgIV2dsIH+NBwwTDb3+XGd39l3 X-Received: by 2002:a65:64c4:: with SMTP id t4mr2889945pgv.298.1566993161912; Wed, 28 Aug 2019 04:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566993161; cv=none; d=google.com; s=arc-20160816; b=K5MT1sSJHuC7AGkWdSENwqoCSTNk69maV17hUOR/VbM7JQckRoYD/X5sE4Gh5VfGEj Nbn2DB1hFLBMW7BFJ+79eYiqf4wjjbnG3lJ/+/oC3yTr++3fXMqfzsqzUbuPBMRbEGdJ A6P40g9SC6cnybA8ChGVlq429VY0lkF1yoKp3iliVWV1WrGQH1UPFpdKYvMo8DTVF6gO rO+6wpD2Ag2q5LsLyBoHilQ/YOnoA+DCLLG9SZWmuMJkILCR6JovipVYrLuiJshc2w6x ZWQF+DpF1H+ZWtMhTMiaGQlUGZEiGFEn4UQkS8IwzCPklxlnJ0b1cE9LJg1UoCul3TL5 0X4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ATDARl21DYFBQvhikaJp+bX0Xqq2b4e3Tu6ZeJDuZDU=; b=BJgODdd+62UMUKa9LEtcj/sJFaotXeFEfQTwSORCTgAx6MrbsHZg6wjtGJ+5kmQOwo +2g5Mhh59Txy9v1MNaUflxrIID51wtE4GU0E8JGH1E7+3Ks0cBUrWWlUn3CD+xlk2+sq 2gqZAU7rujwEctF0SfIhxDwz1GzxpcUGqC9OsegzBoaueJIu6QLsOakCPK4VMwTRPya3 JjM5kaSTJJgEija0nKAfsx8H5u3Rq32NVF5oTCpTNUdp6V2PbbbED9Qtlmmluoy+4jXn 00bQXSU6enp2J4DiSBR87J70bh6c9ZFMwJx/kZjKD0jvjixUyqLqv7TIxxUulYMSHVDB gQ6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si2248702pfb.28.2019.08.28.04.52.26; Wed, 28 Aug 2019 04:52:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726432AbfH1Luw (ORCPT + 99 others); Wed, 28 Aug 2019 07:50:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:59984 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726253AbfH1Luv (ORCPT ); Wed, 28 Aug 2019 07:50:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6C28BAF77; Wed, 28 Aug 2019 11:50:50 +0000 (UTC) Date: Wed, 28 Aug 2019 13:50:48 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Brendan Higgins , Stephen Rothwell , frowand.list@gmail.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, kunit-dev@googlegroups.com, Randy Dunlap , sboyd@kernel.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2] kunit: fix failure to build without printk Message-ID: <20190828115048.b4per6j3rw53oc5u@pathway.suse.cz> References: <20190828093143.163302-1-brendanhiggins@google.com> <20190828094929.GA14038@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190828094929.GA14038@jagdpanzerIV> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2019-08-28 18:49:29, Sergey Senozhatsky wrote: > On (08/28/19 02:31), Brendan Higgins wrote: > [..] > > Previously KUnit assumed that printk would always be present, which is > > not a valid assumption to make. Fix that by removing call to > > vprintk_emit, and calling printk directly. > > > > Reported-by: Randy Dunlap > > Link: https://lore.kernel.org/linux-kselftest/0352fae9-564f-4a97-715a-fabe016259df@kernel.org/T/#t > > Cc: Stephen Rothwell > > Cc: Sergey Senozhatsky > > Signed-off-by: Brendan Higgins > > [..] > > > -static void kunit_vprintk(const struct kunit *test, > > - const char *level, > > - struct va_format *vaf) > > -{ > > - kunit_printk_emit(level[1] - '0', "\t# %s: %pV", test->name, vaf); > > -} > > This patch looks good to me. I like the removal of recursive > vsprintf() (%pV). Same here. And I am happy that we did not add more external vprintk_emit() callers. It would be great to rework dev_printk() as well. Best Regards, Petr