lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 01 Mar 2014 07:54:13 +0000 From: David Howells <dhowells@...hat.com> To: Wolfram Sang <wsa@...-dreams.de> Cc: dhowells@...hat.com, wolfram@...-dreams.de, khali@...ux-fr.org, linux-i2c@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>, linux-kernel@...r.kernel.org Subject: Re: [PATCH 1/2] i2c: Add message transfer tracepoints for I2C Wolfram Sang <wsa@...-dreams.de> wrote: > > > And for the buffer: %*phN is difficult to read IMO. What about %*ph? Or > > > %*phD at least? > > > > My problem with that is that it increases the length of the output by 50% > > and there's a hard limit on how much output we may produce. > > Is it PAGE_SIZE? How is this handled when the buffer is so big that the > limit will be reached anyhow? Note that it is really uncommon to > transfer kilobytes in one go via i2c. Usually, big transfers are split > up into smaller fragments, say 128-256 byte. So, for readability, I'd > still favour %*ph. I was thinking that limited the size of the output field to 64 bytes. But reading vsprintf.c again, it appears it's actually the size of the binary blob that it's converting to hex that's limited to 64 bytes. I would prefer shorter lines - 128 bytes of hex still isn't entirely readable, even with separators interpolated, but I'll add this. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists