From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?0JDQu9C10LrRgdC10Lkg0JHRgNC+0LTQutC40L0=?= Date: Sat, 11 Jun 2016 00:58:14 +0300 Subject: [U-Boot] [PATCH RESEND 2/2 v2] lib: Add hexdump In-Reply-To: <20160610213910.GG11619@bill-the-cat> References: <1465562551-6529-1-git-send-email-abrodkin@synopsys.com> <1465562551-6529-3-git-send-email-abrodkin@synopsys.com> <0DAF21CFE1B20740AE23D6AF6E54843F1E53BA7F@IRSMSX101.ger.corp.intel.com> <20160610193732.GE11619@bill-the-cat> <1465591880.2815.6.camel@gmail.com> <20160610213910.GG11619@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, 2016-06-11 0:39 GMT+03:00 Tom Rini : > On Fri, Jun 10, 2016 at 11:51:20PM +0300, Alexey Brodkin wrote: >> Hi Tom, >> >> On Fri, 2016-06-10 at 15:37 -0400, Tom Rini wrote: >> > On Fri, Jun 10, 2016 at 03:31:30PM +0000, Langer, Thomas wrote: >> > >> > > >> > > Hello Alexey, >> > > >> > > This feature is already available in u-boot, please look for 'print_buffer'. >> > >> > ... make this a candidate for moving over to the linux kernel way? >> >> Could you please elaborate here a little bit? >> I didn't quite understood what do you propose really... >> Switch in U-Boot to kernel's hexdump or send patches with U-Boot's >> print_buffer to LKML? > > OK, to be clear and answer both emails, we should: I'm sorry but again I cannot understand your proposal completely :) > a) Only add the new header when calling the new function What do you mean here? > b) Add further parts to the series to convert current users of > print_buffer to these functions instead to reduce the mental changes one > makes when doing / reading U-Boot code vs Linux Kernel code. Agree, that definitely make sense. But note there's a subtle issue in there. Kernel's implementation of print_hex_dump() assumes debug level which in case of Linux kernel makes perfect sense. But for U-Boot it is barely usable. So we may keep prototype of print_hex_dump() as it is just ignorihg KERN_XXX stuff or have U-Boot's own version with the first argument removed. But in latter case we'll need to update those "current users" of print_hex_dump. Any thoughts? -Alexey