Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2027376yba; Mon, 15 Apr 2019 03:30:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJmL2LBznBsx4gXVSguKqpAn7GeqliHl1MXInDYP2WQWxQyTsydosifTXLRLsjWMlrSoBu X-Received: by 2002:a63:2b41:: with SMTP id r62mr66061781pgr.403.1555324217618; Mon, 15 Apr 2019 03:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555324217; cv=none; d=google.com; s=arc-20160816; b=MOqlHyZJJWQz7GgnS59UpQuh4JQtJX7QVNcEvszLOQJIn4yrjYDFkw5GcEaDrjZ/qd jzpSlz7G3OGA7GyGZxNPPrKjRyNd/GhsDmzOuzZirgIWW0yrsbRCH8PDN7+DHWIRwGQg KItW2nHfL9YU/E6HGugMfqeA4Eg3I/TNOavU2prgszf92cWx/Wxot3utZmS8srbH7K1Q DVhItqPNKBZ29Z7mfEmrAC3gbeEdWWAm1RyarMe2WcA5gXjhkWdrFXmwmmXKkoXcQSp8 O+dXrYyTOHLYhZs0OyvQZNnfxpwtqcbi2GB/nmb94zuAWKv2D+D+3dkgDwmElVk07Om3 o8kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=p4Y6tBh8xXEbwnjo6NlTRFwhYUP/tSpJOxAMJcCodsI=; b=RD29Qp+2+SPQrgqMhqDuIT9FAIWCRV9VvJdtHU2ldxSemTfgg4WaK7kBGwGrp43lXF jQQty6Ri/QwEPXHPv/JdbI9sJA0j8qSo8Hi+snwOca+dABjJAPjhZN2Qv6adFxRotNdc AnEy3EIfBtGkBoSag0DEdgGVvtaM5tgD2chcvqcr9+Xdma8aJC1VfubkAjXe2YyAmD2E Vdh2io5jizyzbX6W3f4gYKuzqSdgGsjUZZpW7hSMnqvzq3vO4wgHn6jP+ww8LOX7U7Ml HW9d25xwRbnyfPMgNDkZKhI4TJ9k9RYsI/yLQdM98bckfzDQmwJKLiLjTuBV0GnnMs4T MuFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@d-silva.org header.s=201810a header.b=C88r+lm9; 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 b15si41278085pfb.231.2019.04.15.03.30.01; Mon, 15 Apr 2019 03:30:17 -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; dkim=pass header.i=@d-silva.org header.s=201810a header.b=C88r+lm9; 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 S1727164AbfDOK3Z (ORCPT + 99 others); Mon, 15 Apr 2019 06:29:25 -0400 Received: from ushosting.nmnhosting.com ([167.160.173.127]:46528 "EHLO ushosting.nmnhosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbfDOK3Y (ORCPT ); Mon, 15 Apr 2019 06:29:24 -0400 Received: from mail2.nmnhosting.com (unknown [202.169.106.97]) by ushosting.nmnhosting.com (Postfix) with ESMTPS id 208BF2F28FBD; Mon, 15 Apr 2019 06:29:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=d-silva.org; s=201810a; t=1555324159; bh=bGWnxigOnlzm5DxlxFSHAklaezuMsLcv8acBfqQaCT0=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=C88r+lm9zWe+RP9ergWnDRBcrbCsFZSl9g2/tncr4blc1yTM/mNdTNB+MOEK3cUT5 xT4qEGgIwrzOVzWPanC6pSz9hziaUJa8BMLux7N8eGMtuufQwihwDy3MF8f6aWSjpC VobdBxTH9YPULQCcuoNsOWdIdMxCt+bOe6sZzT1vgS06Dpeqr+BjkuiBtGwdQ0obFG 8M9fy1xxrQzG22PZJXPrw+baK/19CrDzp/+ZBe6HLbuI2+3g9r73b/xtB2ZJWih3qY tilyBzCQQwKkZsldcReXfrGM54k5DhYZSdMRp0GJzmt7ATdKbWEW5KUNCBq9wiW4cY X+mnRbJdUJAfhvjh6MNHAW+PtU8K1+c8WXVcP/JbzB6O3RL6CyYgcf9U79N9R8VY83 GJ9wgzlNqJBUA3Q4jWYOxZ/utNoTiz9bPYtEbyaQWIEO4UYeyUbywZmEmGLf1qsfUn vlBpetHcErvmE0P2VqiTubBFh7rW1sTgsVAYmvgZU+nclVq8c61imtafS+OUlA/rIg DkC9QJZ/5kniuSUCoNMVSn1IH0+LRiwT0tV+8T8Ve5G4jy7ZF+gazF9MoOzN7GyXvr xKJle1POew7TrjG3nJ7c1Yet2VVfI1OFCSV6KT7yHOaAihhAuVrp4X6HpW98mnhIGy MYGmPLHWAz0kOKOqCK3kL0lo= 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 x3FATAQm038571 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 15 Apr 2019 20:29:11 +1000 (AEST) (envelope-from alastair@d-silva.org) From: "Alastair D'Silva" To: "'Petr Mladek'" Cc: "'Jani Nikula'" , "'Joonas Lahtinen'" , "'Rodrigo Vivi'" , "'David Airlie'" , "'Daniel Vetter'" , "'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'" , "'Sergey Senozhatsky'" , "'Steven Rostedt'" , "'Andrew Morton'" , , , , , , , , , , References: <20190410031720.11067-1-alastair@au1.ibm.com> <20190410031720.11067-2-alastair@au1.ibm.com> <20190412134802.kprel2c2iqijd4ai@pathway.suse.cz> <092f01d4f186$8e9e7cd0$abdb7670$@d-silva.org> <20190415090232.3ualhrt5ssrb2ixq@pathway.suse.cz> In-Reply-To: <20190415090232.3ualhrt5ssrb2ixq@pathway.suse.cz> Subject: RE: [PATCH 1/4] lib/hexdump.c: Allow 64 bytes per line Date: Mon, 15 Apr 2019 20:29:08 +1000 Message-ID: <0dad01d4f376$113df2b0$33b9d810$@d-silva.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMagew30YCVD5mEhyHx4HPts9xr1AHAzoGyAvGIFSMBrjp8bwNRRzUuo2RTc0A= Content-Language: en-au X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail2.nmnhosting.com [10.0.1.20]); Mon, 15 Apr 2019 20:29:14 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > On Wed 2019-04-10 13:17:17, Alastair D'Silva wrote: > > > > From: Alastair D'Silva > > > > > > > > With modern high resolution screens, we can display more data, > > > > which makes life a bit easier when debugging. > > > > > > I have quite some doubts about this feature. > > > > > > We are talking about more than 256 characters per-line. I wonder if > > > such a long line is really easier to read for a human. > > > > It's basically 2 separate panes of information side by side, the > > hexdump and the ASCII version. > > > > I'm using this myself when dealing with the pmem labels, and it works > > quite nicely. > > I am sure that it works for you. But I do not believe that it would be useful in > general. I do, and I believe the choice of the output length should be in the hands of the caller. On further thought, it would make more sense to remove the hardcoded list of sizes and just enforce a power of 2. The function shouldn't dictate what the caller can and can't do beyond the technical limits of it's implementation. Other print/debug functions don't restrict the output size, and I can't see a good justification why hexdump should either. > > > I am not expert but there is a reason why the standard is 80 > > > characters > > per- > > > line. I guess that anything above 100 characters is questionable. > > > https://en.wikipedia.org/wiki/Line_length > > > somehow confirms that. > > > > > > Second, if we take 8 pixels per-character. Then we need > > > 2048 to show the 256 characters. It is more than HD. > > > IMHO, there is still huge number of people that even do not have HD > > display, > > > especially on a notebook. > > > > The intent is to make debugging easier when dealing with large chunks > > of binary data. I don't expect end users to see this output. > > How is it supposed to be used then? Only by your temporary patches? Let me rephrase that, I don't expect end users to *use* this data. Current usage of the hexdump functions are predominantly centred around logging and debugging, and clearly targeted at someone intimately familiar with the relevant subsystem. I expect future use would be similar. Debugging may be as part of active development, or from a log supplied from an end user. In either case, it should be up to the author (as a representative for the consumers of the data) to decide how it should be formatted. -- Alastair D'Silva mob: 0423 762 819 skype: alastair_dsilva msn: alastair@d-silva.org blog: http://alastair.d-silva.org Twitter: @EvilDeece