Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4460606imu; Fri, 30 Nov 2018 18:15:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/XcQM8R3BWKM6jvQVu6AXoLJBabrA/DcKAccO23mOjY+xrVG80xBJpnslY7qh3mehZlnR4Y X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr7852275plo.67.1543630519187; Fri, 30 Nov 2018 18:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543630519; cv=none; d=google.com; s=arc-20160816; b=rooYHapAtCmfgzSACw643QEWBjehLoNcksVKdW4mx1ezZebxM4Ky61FCWtL57ihYq2 DBgJoxLdUAAeU2bPQBqo+FORvkOLL/bNOcH22hn8aNp6EnyFIoIQourON/w/65GYpAV1 8DMhti6VLBsL5B7Gsg9X60Dx5TmshYLKokRLsXEWL2/BpwtfK5zey351Cp9WGZ+fSC/y lK+MZWfMjx5A3tc38qHW4wOjU1Zl0d8v2hTZmddoeO2WLHM0qdFklv883yVG2UVTN5js Z3mpSv0JC+4+1QXzRBVFCu1JcZ9Y0ODNtNRR87EPNH8uobWd+3JN12BRDyYYcDMNhtrl 6HaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YzeU1Ye4+oHzQyr/YW+6VEBlXSN0V4JOdZWyjaPCZI0=; b=ncv9pcVGAOVSM8i7UZasEdQuwLW5THVfCkrfjHA0VUpFquCf7yR98a37q0UlX9QNgX fVJqXgsMdnf7RMbARpoZVpYi+Nej6ZEY1gUFPqXPxKb1mBNfuiR+P8w2s09UTIwz9L/E hLs2I2Th92hjnTGNNKaVwoT6Ntir2qCuEKahc8IHKjRxg5UJm72BCqMspmPcjoFsBk7+ JjWRxzrSpbXJqGOl2l/YS7nNtSHIwR3TUDB7p8R6KKdlTKDJNuNN7oqmQm2+Qe9/WOUr U/r8lxiWzeU16ayKfDD13J1qQ/oJjJYM8UTOkcal3dODIK8G0O+9ulKae8isr2FgO6S7 qgsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c3uRybvE; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si7282833pls.325.2018.11.30.18.15.04; Fri, 30 Nov 2018 18:15:19 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=c3uRybvE; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbeLANZu (ORCPT + 99 others); Sat, 1 Dec 2018 08:25:50 -0500 Received: from mail-ot1-f47.google.com ([209.85.210.47]:43980 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbeLANZu (ORCPT ); Sat, 1 Dec 2018 08:25:50 -0500 Received: by mail-ot1-f47.google.com with SMTP id a11so6889930otr.10 for ; Fri, 30 Nov 2018 18:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YzeU1Ye4+oHzQyr/YW+6VEBlXSN0V4JOdZWyjaPCZI0=; b=c3uRybvEyYWdvNiNFl2CqNH2PaUd+jrW0/3HGbBJmdTe7vMyIuZv6UDqmViBTlUYJ8 0ksthYdYjVPGxRF57H9dYlTbhygbOlT7hKa3trw7STa3xpis2kf3yzg0VW4mvCRbOn/g D3p3nrxRZg/arHbMkFUeHymu2COF2i0ORbU3OFaFdBSfY9GjG0jkI2+xSXg3+s9uUlIs lJpX8xDoPGAhpPddDVgZMeK5GQhRO0tIw7+wgKe/BqGwlmuaui0HJdVKeO3o55itycBP QesMbp/s7JTuM+LBUaUYXmisgxL5BAoWrMUyhyLG5lTTWOXcL/uh2enJUL8lyVIcywEW +HkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YzeU1Ye4+oHzQyr/YW+6VEBlXSN0V4JOdZWyjaPCZI0=; b=mC76uHlhLIzv/J4cXtQj2nJ9vwLnO8OQ1I1vwZTn/lpUQloZ27l+hA3/eQN2w64sbx 5Mzwp0a8anFOTLLg18Vd4YMaA7m4ysrvcuJiOuyYyt4gUZj2rT8TWm96s7UqudWBOvQl ziCfgOpjzC+BgXtmchNTDmrdMl3Fs245Fwvi7xv7C6/78HPrMl+bFEewYszWdpCG3279 1phNZ9Q5VXEZFgGrZuUwuddyoflfKC5IVRg7Q7j5DPGRrK9oQdOkYHnBn7XtGhAcdKLJ ZrYI85Ij2MYEqM5Krp7GJbSBgBkpVEAo2mh6LB6DQylGw5zoQxt+anUXXjTEunSQehpt DoJA== X-Gm-Message-State: AA+aEWZx7Jx2UOmnYECvbaEV7CpQezBhfuwEDQg9qGwJhAQMkvzPLS6U 3+Bui24UpTBQRPNw7EedIVt0QV/VoUg9gmAjNCCDuA== X-Received: by 2002:a05:6830:1005:: with SMTP id a5mr4713308otp.113.1543630468498; Fri, 30 Nov 2018 18:14:28 -0800 (PST) MIME-Version: 1.0 References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-4-brendanhiggins@google.com> <20181130032924.GH18410@garbanzo.do-not-panic.com> In-Reply-To: <20181130032924.GH18410@garbanzo.do-not-panic.com> From: Brendan Higgins Date: Fri, 30 Nov 2018 18:14:17 -0800 Message-ID: Subject: Re: [RFC v3 03/19] kunit: test: add string_stream a std::stream like string builder To: mcgrof@kernel.org 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Or are you saying that you are afraid that somebody might try to use this elsewhere? In the former case, this doesn't belong here. In the latter case, it explicitly depends on KUnit, so it is only available when running tests. Cheers