]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ata: pata_macio: Fix compilation warning
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 20 Jun 2022 00:50:27 +0000 (09:50 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 20 Jun 2022 11:02:21 +0000 (20:02 +0900)
Change the debug print format for the PIO, MWDMA and UDMA masks from
long to int to match the new type used for these fields in struct
ata_port_info.

Fixes: f0a6d77b351c ("ata: make transfer mode masks *unsigned int*")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_macio.c

index 42798402cf631aef0092485365eee748a88472b5..bfea2be2959a6557224ed8c9dd008207a532d4c4 100644 (file)
@@ -1028,7 +1028,7 @@ static void pmac_macio_calc_timing_masks(struct pata_macio_priv *priv,
                }
                i++;
        }
-       dev_dbg(priv->dev, "Supported masks: PIO=%lx, MWDMA=%lx, UDMA=%lx\n",
+       dev_dbg(priv->dev, "Supported masks: PIO=%x, MWDMA=%x, UDMA=%x\n",
                pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask);
 }