]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ti: ethernet: cpdma: Use correct format for genpool_*
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 May 2018 18:45:51 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 May 2018 20:17:09 +0000 (16:17 -0400)
Now that we can compile davinci_cpdma.c on 64-bit hosts, we can see that
the format used for printing a size_t type is incorrect, use %zd
accordingly.

Fixes: aeec3021043b ("net: ethernet: ti: cpdma: remove used_desc counter")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c

index 31ae04117f0a2e174739c47b34379fb61c14c52e..9ec49213de5e74c67bf3ea3afdd25a471ecbc703 100644 (file)
@@ -191,7 +191,7 @@ static void cpdma_desc_pool_destroy(struct cpdma_ctlr *ctlr)
                return;
 
        WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool),
-            "cpdma_desc_pool size %d != avail %d",
+            "cpdma_desc_pool size %zd != avail %zd",
             gen_pool_size(pool->gen_pool),
             gen_pool_avail(pool->gen_pool));
        if (pool->cpumap)