Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753885AbdFMVvs (ORCPT ); Tue, 13 Jun 2017 17:51:48 -0400 Received: from smtprelay0068.hostedemail.com ([216.40.44.68]:40142 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753643AbdFMVvo (ORCPT ); Tue, 13 Jun 2017 17:51:44 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 48,2.914,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:418:541:973:988:989:1260:1277:1311:1313:1314:1345:1373:1437:1515:1516:1518:1534:1539:1567:1593:1594:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3865:3866:3870:3871:3872:3874:4321:4605:5007:9121:10004:10400:10848:11026:11658:11783:11914:12043:12114:12296:12438:12555:12740:12895:12986:13069:13311:13357:13439:13894:14659:14721:21080:21433:21627:30003:30054,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: maid09_6632b1403331b X-Filterd-Recvd-Size: 1423 Message-ID: <1497390701.18751.26.camel@perches.com> Subject: Odd use of %14pM in net/batman-adv/distributed-arp-table.c From: Joe Perches To: Marek Lindner , Simon Wunderlich , Antonio Quartulli Cc: "David S. Miller" , b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 13 Jun 2017 14:51:41 -0700 Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 612 Lines: 23 An output mac address is 17 bytes 1 12345678901234567 00:11:22:33:44:55 but in net/batman-adv/distributed-arp-table.c int batadv_dat_cache_seq_print_text(struct seq_file *seq, void *offset) { [...] seq_printf(seq, " * %15pI4 %14pM %4i %6i:%02i\n", ???&dat_entry->ip, dat_entry->mac_addr, ???batadv_print_vid(dat_entry->vid), ???last_seen_mins, last_seen_secs); %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 Is that what's really desired? If so, I'd suggest using something more obvious like %5phC