Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3325096ybd; Tue, 25 Jun 2019 00:15:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdNNPprMasrghqgTjZVgp2hAH6/k2WVWlH9CYQIkXb0wwarxkPWcX64kVql13gOdqI6F+k X-Received: by 2002:a63:7a5b:: with SMTP id j27mr362340pgn.242.1561446907744; Tue, 25 Jun 2019 00:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561446907; cv=none; d=google.com; s=arc-20160816; b=t60iBvtok0YIsAmBrRGauUtnYNSJNZ/tVtLtKo4s84zIqrICd25E+tcRpTB7gXgN/1 TUVxv13worrnXx+umZ1GeX8yVHpRecIfbJV3/u/YPEKZSQFxjr7SjGXH8KKemM7KzNdQ c/Zh6Dnf8hRTcDlCPTagLJW7SD0qQ6cLHJoKAexCn9vxax2ytOgGn9Wy83KNyTBRIaH+ cAmkx2m9cG4EAtXyWnpw3Po2YfuguhO3wVLG9/4NyzKEzJ5AerWRwqMIdqmaDHwOUCZv qbUUOIKgL7aeZCNWO/VKflaLOnuEd1gLoCFGyNdTbC54A/FoHjAEewWCpezGvdfowzTm 6ujA== 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:dkim-signature; bh=l+xXWmO5RmkNjJSS9msvRmeO50UX48hQePwFLu1WYww=; b=g/XTjJMzLRdcGl1a67ZaN4KhsqpuC4uop/lYDpwMX42sloFlY6W6jiF80HDVVopDZ2 7Gpzz5AN+YlUVSssiCkPMjv/JHldrv1OOZ4sJlSniG1/YYCVcQcj4bnKXJWV+5VnUdVp gtqWdT7da7H91mKbz6HA348c3Gh9CeEN7m10jpVX2zOvQcS2QCs/9cYtn+02YZMAvjmA iRER56rzH2tRLgN7hu/kYXAgCajC0AkwmkmJMYZ7dedd4usuzajwlBiyuQO1e3YCZKwF MWfbVHopiGd8uxkPmWifkCjpdB4ihYSbe2Az29N8eL/ZR19jBDDQjthw7wRAJKIStLZh hw7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@d-silva.org header.s=201810a header.b=K4gLgQWu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 b38si13041375pla.137.2019.06.25.00.14.53; Tue, 25 Jun 2019 00:15:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@d-silva.org header.s=201810a header.b=K4gLgQWu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbfFYFGn (ORCPT + 99 others); Tue, 25 Jun 2019 01:06:43 -0400 Received: from ushosting.nmnhosting.com ([66.55.73.32]:34398 "EHLO ushosting.nmnhosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfFYFGm (ORCPT ); Tue, 25 Jun 2019 01:06:42 -0400 Received: from mail2.nmnhosting.com (unknown [202.169.106.97]) by ushosting.nmnhosting.com (Postfix) with ESMTPS id A2C4A2DC005B; Tue, 25 Jun 2019 01:06:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=d-silva.org; s=201810a; t=1561439202; bh=ciUqZASdiG9qaTP/PKSFriQCA2JczzepFyCfhQPhnVk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=K4gLgQWu25eleaN8DIeSz5E82cI8K0smK5D3ZMpLjBFJrknUqV9V+eylalpbQXRAM nmEfhzWvgda7JuxTqo/SzkupuQp4odwSE5eKSMo5RCVBzSG9hQgA/2yqBEFIexBxOT i9vCKnVN9a9mDTxg3U1oNbYXq0GD4w40bt+gnrvVfRfHlUt7CzmQxv2ITaF01BU5v0 qZonJ/jE4kiTWy7bQrfjqbazrpEygb0DU6gCobQX5qblC7fRwhvF4Sq1I5FxM2qyhg 8GI0GBlW0Lvvwa7ilfXZ4x3AaZQNQL9XQbQNvJOLXG+h38c4UU6rLCHqjUeiUTV7I9 9YOGia5GJedY1w/4Tr8d8CBihfAg/swFyuKTugjzhJ3nduRG/LNj+cPcUZRU9QpFNl 2JMD91ZFIq08WBl0d90UMFWl7mSZfbGc4bFGkopV/6ReOk/vUtz69zueTfYfrFWzSU s+Er1jtAFNs/BmK+rQ0XkTqVSRlwAjaqyFZOLj6kw381sp7VTpaEupsP/8y3Je8A6v 4UugchG2zDEWWEYN/tFyApbfSvLIe6pKK/LvgAQvjqkwlyRa0sBz8pzBqHKDxO1zyV JYMRMzTpGfe9MrWWhqER/P+y3YGfeX1gbEPw1Scpeut1XCY2CNUcsoDJlTQlBXKJk2 DpMk176r7iASSHUrxiLPF0zo= Received: from adsilva.ozlabs.ibm.com (static-82-10.transact.net.au [122.99.82.10] (may be forged)) (authenticated bits=0) by mail2.nmnhosting.com (8.15.2/8.15.2) with ESMTPSA id x5P56DR4022607 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Tue, 25 Jun 2019 15:06:29 +1000 (AEST) (envelope-from alastair@d-silva.org) Message-ID: <746098160c4ff6527d573d2af23c403b6d4e5b80.camel@d-silva.org> Subject: Re: [PATCH v4 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags From: "Alastair D'Silva" To: Joe Perches 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: Tue, 25 Jun 2019 15:06:13 +1000 In-Reply-To: <3340b520a57e00a483eae170be97316c8d18c22c.camel@perches.com> References: <20190625031726.12173-1-alastair@au1.ibm.com> <20190625031726.12173-5-alastair@au1.ibm.com> <3340b520a57e00a483eae170be97316c8d18c22c.camel@perches.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail2.nmnhosting.com [10.0.1.20]); Tue, 25 Jun 2019 15:06:37 +1000 (AEST) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2019-06-24 at 22:01 -0700, Joe Perches wrote: > 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. > > The change actions Jani's suggestion: https://lkml.org/lkml/2019/6/20/343 -- Alastair D'Silva mob: 0423 762 819 skype: alastair_dsilva Twitter: @EvilDeece blog: http://alastair.d-silva.org