• James Hogan's avatar
    ipmr: Fix ptrdiff_t print formatting · 91e6dd82
    James Hogan authored
    ipmr_vif_seq_show() prints the difference between two pointers with the
    format string %2zd (z for size_t), however the correct format string is
    %2td instead (t for ptrdiff_t).
    
    The same bug in ip6mr_vif_seq_show() was already fixed long ago by
    commit d430a227 ("bogus format in ip6mr").
    Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
    Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
    Cc: netdev@vger.kernel.org
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    91e6dd82
ipmr.c 79.7 KB