Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4883317yba; Mon, 13 May 2019 01:10:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu1OyRklzm0GVg0FhWi82UHHbCJoEFBKZVSMtAh55IC/xv8AaU+Wzdnxi9+GbpF8/cpEJN X-Received: by 2002:a63:ea42:: with SMTP id l2mr29183557pgk.19.1557735001150; Mon, 13 May 2019 01:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557735001; cv=none; d=google.com; s=arc-20160816; b=zC0G35ZLyAuoKUWxWEem7ntFSphkifk8ubep3sK2mqr7E3JsfpNbw7Q3JKg1JvR/rq 8yaAKmUjzNepcFALF+LWN96AuWdM0v2vvgpdIwnrRC28299SEmFRJpY4AVB5g1WMS6mS fw+n/roQ9H7ZaTi1l/dDyRTbpZAFGpaMkQBjzh3BDJEBX7whb4Dsseai5XSZjAg5MsYb Tz5BQ8IJ3HeVThT4dnaIJY7viqhSQ78upoNZ4r1Knje1VdU3sNYaZ3RXDHWNw9z4AQ6r LzLxTT30D6a7j5v9VkKxOYRpAzqhmlyEz9bTKT5jTY/8kq0ukWJEmOu7yTftqeQ0vRso Gb9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=cWS0cswnWxqwAKvIvv68WJNIMWKIaWKfJeQd7U4ng6w=; b=HEtrlcO64+LovKnMG6z8yY9w+Q6G0RNl0FazYWtApjSQvJwDHPe4b6su4qX2qp4F3V yAFCk40N4EyeUh27Q29HGhE83qtz78zc/204fMDl14vpUPKQYO7l4u162+3/UuXMiFmT 3v24D0lhQv0OFO8MU5K8g9tMlJqa7A0qvGpd8Cr0Sp2Gjokp5+43Chkvar8/oeqa59bd gZY8a0YSK8JmcdFwWpkuSUIqeG0sIMtTT0lQlZpSdQLd0tJwEm03bkizrNl/zJFdpzN6 DYzvlDrXauNI4tGMlVnn1X/0XdDYIa9r5AY1SS0DE32Fj6O7mrP/yAOMOaInvmLGXzoj kHMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@d-silva.org header.s=201810a header.b=aSet9rLY; 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 cp7si14905803plb.14.2019.05.13.01.09.33; Mon, 13 May 2019 01:10:01 -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=aSet9rLY; 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 S1728031AbfEMHf7 (ORCPT + 99 others); Mon, 13 May 2019 03:35:59 -0400 Received: from ushosting.nmnhosting.com ([66.55.73.32]:37960 "EHLO ushosting.nmnhosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbfEMHf7 (ORCPT ); Mon, 13 May 2019 03:35:59 -0400 Received: from mail2.nmnhosting.com (unknown [202.169.106.97]) by ushosting.nmnhosting.com (Postfix) with ESMTPS id 231832DC0069; Mon, 13 May 2019 03:35:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=d-silva.org; s=201810a; t=1557732958; bh=aa+i95blYOSxhGwoRx9zFnMo5oG4XUfXT748BNmFJIU=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=aSet9rLYykQxcyXFS2GF9u8JjdaPfKwlu1qpX3Ek5B3X+zmGgF+1WtmJH8QDHUKVR POJW18jnNWqKlc9WV/y9wswfLzQAdORTjoBGt6wbLb+XQzz+YSA8YT8exQIamI1hKA NgBZZqdAOIFcj5X4mKMcpOALzVECo4ayuE60g+CPH7CvPt6lSOfmFpWRNnpn+wYPF4 P6SqYrz3uRsFocaNWbLb6GRXp8TE8CKtYMYUEeB/QfMAnGJ7U/FZrL/hYqxDE0ryBG /8/mtlXRqGs0pBJCO5WKEQDm1lzWRXt40l8YPyEBjUBm/McmvG1Iafbx2EfRhysC43 vKIF2BpJNTxkposUCWaXgJuoNekulC6f7wlHUlNkNooeQHpAKXYuClI/ikmvCrnCff Vy/fK7azMrun4S9M5k0UdX9IUayiM9Y1AVv1iAHjIJrMhP8ELgeNkTypKa35MyJMjx LmIQVy3zVwlAOW1mMnZhrLapo90FKO26dOcJq140LOTx0ZahhIuR6KISKy+FuwYBfp cNemDFNeNEkfGRWxw0VhCsOArzkI9iJJSDwhVYx2DI4O1xJX2kFEObBeq4rx25ClRK PDCjVeuymuPU3aUBQKrJtdTxur1fcbH6SvSnl3OKtvCVGly9Za8zstBXG1KdRUNuvp kOJclMVcOxeDGLfkA1Mcr7AQ= Received: from Hawking (ntp.lan [10.0.1.1]) (authenticated bits=0) by mail2.nmnhosting.com (8.15.2/8.15.2) with ESMTPSA id x4D7ZjC4057687 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 May 2019 17:35:46 +1000 (AEST) (envelope-from alastair@d-silva.org) From: "Alastair D'Silva" To: "'Geert Uytterhoeven'" , "'Alastair D'Silva'" 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 Graphics Development'" , "'DRI Development'" , "'Linux Kernel Mailing List'" , "'netdev'" , , "'linux-wireless'" , "'scsi'" , "'Linux Fbdev development list'" , "'driverdevel'" , "'Linux FS Devel'" References: <20190508070148.23130-1-alastair@au1.ibm.com> <20190508070148.23130-4-alastair@au1.ibm.com> In-Reply-To: Subject: RE: [PATCH v2 3/7] lib/hexdump.c: Optionally suppress lines of repeated bytes Date: Mon, 13 May 2019 17:35:47 +1000 Message-ID: <04de01d5095e$7f6af730$7e40e590$@d-silva.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-au Thread-Index: AQGz7QD7bMLLz3XdMyQiMIIzLY+D4AJkmwv+AXBy99KmjDiokA== X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail2.nmnhosting.com [10.0.1.20]); Mon, 13 May 2019 17:35:53 +1000 (AEST) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Geert Uytterhoeven > Sent: Monday, 13 May 2019 5:01 PM > To: Alastair D'Silva > Cc: alastair@d-silva.org; 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 Graphics Development gfx@lists.freedesktop.org>; DRI Development devel@lists.freedesktop.org>; Linux Kernel Mailing List kernel@vger.kernel.org>; netdev ; > ath10k@lists.infradead.org; linux-wireless = ; > scsi ; Linux Fbdev development list = fbdev@vger.kernel.org>; driverdevel ; = Linux > FS Devel > Subject: Re: [PATCH v2 3/7] lib/hexdump.c: Optionally suppress lines = of > repeated bytes >=20 > Hi Alastair, >=20 > Thanks for your patch! And thanks for your politeness :) >=20 > On Wed, May 8, 2019 at 9:04 AM Alastair D'Silva > wrote: > > From: Alastair D'Silva > > > > Some buffers may only be partially filled with useful data, while = the > > rest is padded (typically with 0x00 or 0xff). > > > > This patch introduces a flag to allow the supression of lines of > > repeated bytes, >=20 > Given print_hex_dump() operates on entities of groupsize (1, 2, 4, or = 8) > bytes, wouldn't it make more sense to consider repeated groups instead = of > repeated bytes? Maybe, it would mean that subsequent addresses may not be a multiple of = rowsize though, which is useful. > > which are replaced with '** Skipped %u bytes of value 0x%x **' >=20 > Using a custom message instead of just "*", like "hexdump" uses, will = require > preprocessing the output when recovering the original binary data by > feeding it to e.g. "xxd". > This may sound worse than it is, though, as I never got "xxd" to work = without > preprocessing anyway ;-) I think showing the details of the skipped values is useful when reading = the output directly. In situations where binary extracts are desired, = the feature can always be disabled. --=20 Alastair D'Silva mob: 0423 762 819 skype: alastair_dsilva msn: alastair@d-silva.org blog: http://alastair.d-silva.org Twitter: @EvilDeece