Thread (1 message) 1 message, 1 author, 2025-02-14

Re: [PATCH 1/3] hexdump: Implement macro for converting large buffers

From: Nick Child <nnac123@linux.ibm.com>
Date: 2025-02-14 18:33:30
Also in: lkml

Hi Dave,

Thanks for reviewing,

On 2/14/25 12:00 PM, Dave Marquardt wrote:
Nick Child [off-list ref] writes:
quoted
+	     (i) += (rowsize) == 16 || (rowsize) == 32 ? (rowsize) : 16	\
Nit: If you left out the (rowsize) == 16 check here you'd still add 16
to (i).
I was trying to have this translate into "if invalid rowsize was used 
then default to 16" since

hex_dump_to_buffer has a very similar conditional. But I agree, 
logically it looks strange.

If I send a v3 (I also foolishly forgot the v2 tag in this patch), I 
will change this like to

+	     (i) += (rowsize) == 32 ? 32 : 16	\
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help