Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1653424

Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34 configuration ID

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34 configuration ID
Date 2017-05-30 19:30 +0200
Message-ID <tMT7Y-1Nk-21@gated-at.bofh.it> (permalink)
References <tMHgt-2mn-1@gated-at.bofh.it> <tMKHn-4SA-5@gated-at.bofh.it> <tMSEW-1o1-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2017-05-30 at 09:59 -0700, Dmitry Torokhov wrote:
> On Tue, May 30, 2017 at 10:23:58AM +0200, Benjamin Tissoires wrote:
> > On May 29 2017 or thereabouts, Dmitry Torokhov wrote:
> > > Instead of printing bytes one by one, let's use %phN to print the buffer in
> > > one go.
> > > 
> > > Also use hweight8 to count number of partitions instead of inspecting it
> > > bit by bit.
> > > 
> > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > ---
> > 
> > Looks good to me:
> > Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> 
> Hm, I just realized taht we'd go from upper to lowercase hex digits. I
> think it should be OK, but I'd like to hear interested parties (Nick).
> 
> Or we'd need to introduce %pH I guess.

As it's debugging output, I'd hazard to guess it doesn't matter.

If someone _really_ needs upper-case output in *ph, I'd also
suggest adding another qualifier to keep the number of letter
prefixes used down.  %ph[CDNU].

A pity that %ph[cdnCDN] isn't possible as that's the style used
by %pU[blBL] for lower/upper case output.

There are < 80 uses of %[\*\d]+ph[CDN], maybe it'd be reasonable
to do a treewide sed to lowercase for them.  Dunno.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Input: synaptics-rmi4 - use %ph to form F34 configuration ID Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-05-30 06:50 +0200
  Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-05-30 10:30 +0200
    Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-05-30 19:00 +0200
      Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Joe Perches <joe@perches.com> - 2017-05-30 19:30 +0200
        Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-05-30 21:10 +0200
          Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Joe Perches <joe@perches.com> - 2017-05-30 21:20 +0200
      Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Nick Dyer <nick@shmanahar.org> - 2017-05-31 23:20 +0200
        Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34  configuration ID Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-06-02 07:20 +0200

csiph-web