From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: Odd use of %14pM in net/batman-adv/distributed-arp-table.c Date: Wed, 14 Jun 2017 02:32:16 -0700 Message-ID: <1497432736.18751.39.camel@perches.com> References: <1497390701.18751.26.camel@perches.com> <5300874.nPgxNW8UST@bentobox> Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Marek Lindner , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Antonio Quartulli , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "David S. Miller" To: Sven Eckelmann , b.a.t.m.a.n-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r@public.gmane.org Return-path: In-Reply-To: <5300874.nPgxNW8UST@bentobox> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: b.a.t.m.a.n-bounces-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r@public.gmane.org Sender: "B.A.T.M.A.N" List-Id: netdev.vger.kernel.org On Wed, 2017-06-14 at 10:23 +0200, Sven Eckelmann wrote: > On Dienstag, 13. Juni 2017 14:51:41 CEST Joe Perches wrote: > > An output mac address is 17 bytes > > [...] > > but in net/batman-adv/distributed-arp-table.c > > [...] > > %14pM is odd as this should not emit the last byte of the > > mac address. So given the example above, it would output > > 00:11:22:33:44 > > [...] > > I completely agree too the "wrong length" part. It is currently not omitting > the last byte: Right, I only looked at vsprintf.c and mistook precision for field_width. Do you want to provide a patch to convert it to simple %pM's? OK.