Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4457496yba; Tue, 9 Apr 2019 20:19:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI+HHtpBAgAvQkeTpKsMEIKmpcAY5aRu4wuVspXpZ4/FVxU1dy0FMY1t/3yxOwD4uPNxJf X-Received: by 2002:a17:902:4101:: with SMTP id e1mr39820839pld.25.1554866372790; Tue, 09 Apr 2019 20:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554866372; cv=none; d=google.com; s=arc-20160816; b=UF2y8m65TzNnpJrdrHrDSl0h3XKMQZQ9URpgSZYVvooLyRqiehKiK6y8/t8TV2Gjcm Uk8Xl6emlHAKQDiUyzRo1J/A/FmmSrGf1foVApvaKV8P88kw03EnM6HZ+O0jtJflJ+Jr /HdpjTCrs9wJDxHQUwf5g6PxklMSZn4M0ue6vimiKK+YMIIUNkCBmgV7aLqaYLoJaUbN yPOB/eJ2r3c+Lv5kd0WWbzQsVMNeteHuqh4c6w13cCPgiMpQCnchchlASRs/dixz0+W7 GzSSzskRmuyux88v2jQZVPqwXo5tta7mwV00EXeSD2RV9ZaZwitWD2ocGwBxAEGVXPeq cQTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=Lrf6vEp1k85aPhfumywuB40YV4RG9+XdWde/u/3KfgE=; b=hgT8W5owehoyNDiLP2BVowUUGwNHSZwQ7CMqgAs0TI7nIgWB95FYgWDi+RpayRyp9z 21f+S9sufEKV8gHLZGmiacUVx2hBJQ0Aa1XnYPPUb6+9TwB6P/Vk+eqdryAUl9on734C ilz3Iehp6Or/yxf9S+PbsxFKq10t7eZgby5mAdHdOWxnqf+S9cc3zHyKwfwaHFceWdGq ZQU9jsEje4qJXogooBHm2Ao9x8sQVxTskKKY2EQ2CTSQvjh0cnscK2Yzy8cVgyaykV9I ZzdgV6NI8G1zJnCO3KW8MKaxetTSFp1flc9zKhuBNcFDNcSRT5fREkq6k3T9oXJEUqyN aMiA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16si28232210pls.150.2019.04.09.20.19.16; Tue, 09 Apr 2019 20:19:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727070AbfDJDSD (ORCPT + 99 others); Tue, 9 Apr 2019 23:18:03 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48188 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726837AbfDJDSC (ORCPT ); Tue, 9 Apr 2019 23:18:02 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3A39MWj075503 for ; Tue, 9 Apr 2019 23:18:00 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2rs5d9e8ce-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 09 Apr 2019 23:18:00 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Apr 2019 04:17:58 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 10 Apr 2019 04:17:50 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3A3HnG350069718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Apr 2019 03:17:49 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 57235AE04D; Wed, 10 Apr 2019 03:17:49 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED601AE057; Wed, 10 Apr 2019 03:17:48 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 10 Apr 2019 03:17:48 +0000 (GMT) Received: from adsilva.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id B424AA01D9; Wed, 10 Apr 2019 13:17:47 +1000 (AEST) From: "Alastair D'Silva" To: alastair@d-silva.org 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 , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , 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 Subject: [PATCH 0/4] Hexdump enhancements Date: Wed, 10 Apr 2019 13:17:16 +1000 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19041003-0020-0000-0000-0000032E20F7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19041003-0021-0000-0000-00002180492D Message-Id: <20190410031720.11067-1-alastair@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-10_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=899 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904100022 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alastair D'Silva Apologies for the large CC list, it's a heads up for those responsible for subsystems where a prototype change in generic code causes a change in those subsystems. This series enhances hexdump. These improve the readability of the dumped data in certain situations (eg. wide terminals are available, many lines of empty bytes exist, etc). The default behaviour of hexdump is unchanged, however, the prototype for hex_dump_to_buffer() has changed, and print_hex_dump() has been renamed to print_hex_dump_ext(), with a wrapper replacing it for compatibility with existing code, which would have been too invasive to change. Alastair D'Silva (4): lib/hexdump.c: Allow 64 bytes per line lib/hexdump.c: Optionally suppress lines of filler bytes lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags lib/hexdump.c: Allow multiple groups to be separated by lines '|' drivers/gpu/drm/i915/intel_engine_cs.c | 2 +- drivers/isdn/hardware/mISDN/mISDNisar.c | 6 +- drivers/mailbox/mailbox-test.c | 2 +- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 +- .../net/ethernet/synopsys/dwc-xlgmac-common.c | 2 +- drivers/net/wireless/ath/ath10k/debug.c | 3 +- .../net/wireless/intel/iwlegacy/3945-mac.c | 2 +- drivers/platform/chrome/wilco_ec/debugfs.c | 3 +- drivers/scsi/scsi_logging.c | 8 +- drivers/staging/fbtft/fbtft-core.c | 2 +- fs/seq_file.c | 3 +- include/linux/printk.h | 38 ++++- lib/hexdump.c | 143 ++++++++++++++---- lib/test_hexdump.c | 5 +- 14 files changed, 168 insertions(+), 53 deletions(-) -- 2.20.1