Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3322562ybd; Tue, 25 Jun 2019 00:12:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO202lfHvTKlYddogAFRgUVD4uG82wtMOYSjPlSQHvuFapo2+R33ADyG4yT5PPqOxVDYVm X-Received: by 2002:a17:902:d897:: with SMTP id b23mr27940997plz.250.1561446726965; Tue, 25 Jun 2019 00:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561446726; cv=none; d=google.com; s=arc-20160816; b=xvfzZzIYi0tv0jwFXiOhX2fgcyNyxWHdFVUp+rflRVlg4Q36CNYntgQkizU/c5SiYi TvXHfRPAzuoi2BDpKrYVoHjQt4RM5rSYAdVb7ODVoiJRKxYte+CoXQB9Rw40U4VZ5DDZ LYPEBAvey2yVWXWDWp+4BT0hjP7SOU3CojX67v0y2mjWakOaPz/XyAGiMVnORLcXAjF8 TXzzgXuxUnlB/T7J5WDR/uDHuibRY9VGopNTxUonrvkQcXt4YZMMt+OKe6IgvECgmnu2 9v0yvTh0b0gUQqMbRI5XNYkLrgRv8Z6yKPmLnbvkp0SQuA0xQ4LI6AIDBmLkl77uKtWa fMLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ZmjcUNXm5LHyNiwvMFU1e7OuZEWyhAxaj9K07dPXaOA=; b=Rfs04BPBgI5NJqAdZLLasb1+UqZFJV4gT6/rQ+m17+m4p1c8hajQWBEZ3cAqy6Pnz7 yp4QC9nfmMvq/N2AzKOHNjIaS1GeHNvZ38d7jCu5YNdjqczx2+MK4dOPbUxnzhOn/3k8 LtZt8kKNIxu5RHx1V2o+tzgh8aH1p369gwv3mGoYZL0UllwKXNrTfLRMFOeVMPScxwYf cq84p4YjztXKMTyrsY3G+fcFP+qusDVXMENZaitcbwYiUyPM7KwGTPLQHQcGXr58muXR F1CdvWG2s+m3WzEWbFe3NNLXSI2TsicsHcdtAons62CWFX7ouYNO92UtjoJ5DtldY82l 1Uwg== 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 w6si1183177pgf.193.2019.06.25.00.11.51; Tue, 25 Jun 2019 00:12:06 -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 S1727834AbfFYFBt (ORCPT + 99 others); Tue, 25 Jun 2019 01:01:49 -0400 Received: from smtprelay0003.hostedemail.com ([216.40.44.3]:56226 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbfFYFBs (ORCPT ); Tue, 25 Jun 2019 01:01:48 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 8D503180295A0; Tue, 25 Jun 2019 05:01:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: line56_832b716e87755 X-Filterd-Recvd-Size: 3467 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Jun 2019 05:01:41 +0000 (UTC) Message-ID: <3340b520a57e00a483eae170be97316c8d18c22c.camel@perches.com> Subject: Re: [PATCH v4 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags From: Joe Perches To: Alastair D'Silva , alastair@d-silva.org Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Dan Carpenter , Karsten Keil , Jassi Brar , Tom Lendacky , "David S. Miller" , Jose Abreu , Kalle Valo , Stanislaw Gruszka , Benson Leung , Enric Balletbo i Serra , "James E.J. Bottomley" , "Martin K. Petersen" , Greg Kroah-Hartman , Alexander Viro , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , David Laight , Andrew Morton , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-fsdevel@vger.kernel.org Date: Mon, 24 Jun 2019 22:01:40 -0700 In-Reply-To: <20190625031726.12173-5-alastair@au1.ibm.com> References: <20190625031726.12173-1-alastair@au1.ibm.com> <20190625031726.12173-5-alastair@au1.ibm.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-06-25 at 13:17 +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > In order to support additional features, rename hex_dump_to_buffer to > hex_dump_to_buffer_ext, and replace the ascii bool parameter with flags. [] > diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c [] > @@ -1338,9 +1338,8 @@ static void hexdump(struct drm_printer *m, const void *buf, size_t len) > } > > WARN_ON_ONCE(hex_dump_to_buffer(buf + pos, len - pos, > - rowsize, sizeof(u32), > - line, sizeof(line), > - false) >= sizeof(line)); > + rowsize, sizeof(u32), line, > + sizeof(line)) >= sizeof(line)); Huh? Why do this? > diff --git a/drivers/isdn/hardware/mISDN/mISDNisar.c b/drivers/isdn/hardware/mISDN/mISDNisar.c [] > @@ -70,8 +70,9 @@ send_mbox(struct isar_hw *isar, u8 his, u8 creg, u8 len, u8 *msg) > int l = 0; > > while (l < (int)len) { > - hex_dump_to_buffer(msg + l, len - l, 32, 1, > - isar->log, 256, 1); > + hex_dump_to_buffer_ext(msg + l, len - l, 32, 1, > + isar->log, 256, > + HEXDUMP_ASCII); Again, why do any of these? The point of the wrapper is to avoid changing these.