Skip to content

Commit

Permalink
net/m68k: Hydra Ethernet - print whole resource instead of start address
Browse files Browse the repository at this point in the history
resource_size_t changed from `unsigned long' to `phys_addr_t`, which is either
`u32' or `u64'.
Print the whole resource to remove the cast and to make it future-proof.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Aug 30, 2010
1 parent 3d5b99a commit c274f29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/hydra.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ static int __devinit hydra_init(struct zorro_dev *z)

zorro_set_drvdata(z, dev);

printk(KERN_INFO "%s: Hydra at 0x%08llx, address "
"%pM (hydra.c " HYDRA_VERSION ")\n",
dev->name, (unsigned long long)z->resource.start, dev->dev_addr);
pr_info("%s: Hydra at %pR, address %pM (hydra.c " HYDRA_VERSION ")\n",
dev->name, &z->resource, dev->dev_addr);

return 0;
}
Expand Down

0 comments on commit c274f29

Please sign in to comment.