• Jeff Garzik's avatar
    [TIPC]: fix printk warning · 617dbeaa
    Jeff Garzik authored
    gcc spits out this warning:
    
    net/tipc/link.c: In function ‘link_retransmit_failure’:
    net/tipc/link.c:1669: warning: cast from pointer to integer of different
    size
    
    More than a little bit ugly, storing integers in void*, but at least the
    code is correct, unlike some of the more crufty Linux kernel code found
    elsewhere.
    
    Rather than having two casts to massage the value into u32, it's easier
    just to have a single cast and use "%lu", since it's just a printk.
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    617dbeaa
link.c 85.4 KB