Skip to content

Commit

Permalink
net/ethernet/freescale: fix warning for ucc_geth
Browse files Browse the repository at this point in the history
uf_info.regs is resource_size_t i.e. phys_addr_t that can be either u32
or u64 according to CONFIG_PHYS_ADDR_T_64BIT.

The printk format is thus adaptet to u64 and the regs value cast to u64
to take both u32 and u64 into account.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Valentin Longchamp authored and David S. Miller committed Sep 18, 2017
1 parent 7598b34 commit 2df9d67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/freescale/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3857,8 +3857,9 @@ static int ucc_geth_probe(struct platform_device* ofdev)
}

if (netif_msg_probe(&debug))
pr_info("UCC%1d at 0x%8x (irq = %d)\n",
ug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs,
pr_info("UCC%1d at 0x%8llx (irq = %d)\n",
ug_info->uf_info.ucc_num + 1,
(u64)ug_info->uf_info.regs,
ug_info->uf_info.irq);

/* Create an ethernet device instance */
Expand Down

0 comments on commit 2df9d67

Please sign in to comment.