• Roland Dreier's avatar
    IB/ipath: Fix printk format for ipath_sdma_status · cd80ec6f
    Roland Dreier authored
    Commit f018c7e1 ("IB/ipath: Change ipath_devdata.ipath_sdma_status to be
    unsigned long") changed ipath_sdma_status to be unsigned long, but left
    a few debug messages that printed it out with a %016llx format, which
    generates the warnings
    
        drivers/infiniband/hw/ipath/ipath_sdma.c:348: warning: format '%016llx' expects type 'long long unsigned int', but argument  3 has type 'long unsigned int'
        drivers/infiniband/hw/ipath/ipath_sdma.c:618: warning: format '%016llx' expects type 'long long unsigned int', but argument  3 has type 'long unsigned int'
    
    Fix this by changing the format used to print out the value to %08lx
    (8 hex digits are now sufficient, because the highest bit used is 31).
    
    Warnings reported by Randy Dunlap <randy.dunlap@oracle.com>.
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    cd80ec6f
ipath_sdma.c 23.3 KB