Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4498367imu; Fri, 30 Nov 2018 19:14:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VeIxfJj+WyY9HIi56+FyI08/ArmnaIB0xrGP3Rcd21yZIjA6jWDf3zJ778A6lTi43Zs/pP X-Received: by 2002:a63:2263:: with SMTP id t35mr6808058pgm.69.1543634095603; Fri, 30 Nov 2018 19:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543634095; cv=none; d=google.com; s=arc-20160816; b=fCVGnxpE0pcpUmy5TnNDfwzAthoQKXLX4Xy75SpjpF6w+L4fbBtdprRqA7Vrgx/BNC DFY2SiGdtT0oFhR9IAgGrTbK658wJxu6AfNw0uwgvmNO9dP+8MCs6fg10UwIe7F1Hujc uk0r9TpGfPiHqhIZia5e+yo8/OIVZCR4EzKcAX4mrvsiV8Y7zv1qyAtTerA4cfZy88RD DpixvB+ccX74e0runm9oT1MK0kmtBuk6TUC1DPB6Dl+TTIAuuYoVwYj3BDc1SKXJUve7 i1ntIDsbVX6Ohrdhk3IsBjqzicS8p469DsX+PjKhkJ3ziJXAYVEh4qVGn/W6JNX6GwI6 ZmYw== 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=ry31ERUK+wtDIewdxNghiOP8fuEXHvwiCvVigDDY34I=; b=GMEf1QPDtUVwcI91taNMpjotZm42yhL834BbNDvZMM/tIknhVGGWr8Bt7nLaT7jxrc NENxzOKf0Ny1WfH8uOi5d8y1lU8VBoqGo2ZQeminirSQSii8RkjqFNG37ojVRS+Aq0HS RVALtS/kTvUcQ2t55HF4M79DXJASOZNM7wtMcCx5qNfB5H0XDSOYwjHK5xu+6CBfF/al mfClNNouAsJFi+R9+hdM3LbdhnRInHxHr6bcYH+gu0PuIpw8m3Hyy9RBUI9Gl+G4MEcN N+rysKvp06jTtwc3EgUsx2sfB+fAd5noRHArkvR06FrIu3L4wc7zjWArlSczth4Hwuaz knqg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si6845530plq.190.2018.11.30.19.14.41; Fri, 30 Nov 2018 19:14:55 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbeLAOYB (ORCPT + 99 others); Sat, 1 Dec 2018 09:24:01 -0500 Received: from mail-pf1-f182.google.com ([209.85.210.182]:38668 "EHLO mail-pf1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbeLAOYB (ORCPT ); Sat, 1 Dec 2018 09:24:01 -0500 Received: by mail-pf1-f182.google.com with SMTP id q1so3717002pfi.5; Fri, 30 Nov 2018 19:12:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ry31ERUK+wtDIewdxNghiOP8fuEXHvwiCvVigDDY34I=; b=f//6EqDhk5dzkqRdbjagl1Z/6R1ssoEcaiCG6NNtnDkA9Q0L0Ji0J7Au3X3Et1u3of DSd+T23rFSaYIVq2BFgVuTJjwxDZNBWg31VfKVMR/ToIPnK1s11uUENL+WKqvQE4DhDq JDntmjZNemX6ej3TwOFzrPXpXwhIXfGbd2KsEkuuVzBqjUyRIIdm/iCsGGieBzrhl31a ENGvNxxxvSavMJiAKfPsyxnIzrd2/XtUxDNX4C9ELjRtCA3YiDTgX4w34R1udNpu+N3O Rj9oWsBCji9lIb5Vhyl/RgAXngwu08oPESVe9muiGKqcecHW2EZFROJ6VULlf9TJDah9 aVUg== X-Gm-Message-State: AA+aEWaqB6ibVPQsjPJY2ba3ZJZKnjgA/t5PpuaUGUNZKk58ENMtfrKN DC6fXkAf7acevKwGehi4ppo= X-Received: by 2002:a63:801:: with SMTP id 1mr6718436pgi.275.1543633952617; Fri, 30 Nov 2018 19:12:32 -0800 (PST) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id c20sm10450893pfc.92.2018.11.30.19.12.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 19:12:31 -0800 (PST) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Fri, 30 Nov 2018 19:12:28 -0800 Date: Fri, 30 Nov 2018 19:12:28 -0800 From: Luis Chamberlain To: Brendan Higgins Cc: pmladek@suse.com, Greg KH , Kees Cook , shuah@kernel.org, Joel Stanley , mpe@ellerman.id.au, joe@perches.com, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org, Daniel Vetter , dri-devel@lists.freedesktop.org, Rob Herring , dan.j.williams@intel.com, linux-nvdimm@lists.01.org, kieran.bingham@ideasonboard.com, Frank Rowand , Knut Omang Subject: Re: [RFC v3 03/19] kunit: test: add string_stream a std::stream like string builder Message-ID: <20181201031228.GM28501@garbanzo.do-not-panic.com> References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-4-brendanhiggins@google.com> <20181130032924.GH18410@garbanzo.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 30, 2018 at 06:14:17PM -0800, Brendan Higgins wrote: > On Thu, Nov 29, 2018 at 7:29 PM Luis Chamberlain wrote: > > > > On Wed, Nov 28, 2018 at 11:36:20AM -0800, Brendan Higgins wrote: > > > A number of test features need to do pretty complicated string printing > > > where it may not be possible to rely on a single preallocated string > > > with parameters. > > > > > > So provide a library for constructing the string as you go similar to > > > C++'s std::string. > > > > Hrm, what's the potential for such thing actually being eventually > > generically useful for printk folks, I wonder? Petr? > > Are you saying you think this is applicable for other things? Yes. > This doesn't belong here. Luis