Skip to content

phy: m31: correct printf code in sys_m31_dphy_tx_configure()

atlas.luo requested to merge github/fork/xypron/m31 into JH7110_VisionFive2_6.6.y_devel

Created by: xypron

Building results in a warning

drivers/phy/m31/phy-m31-dphy-tx0.c:229:29: warning: format ‘%ld’
expects argument of type ‘long int’, but argument 4 has type
‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]

drivers/phy/m31/phy-m31-dphy-tx0.c:229:45: note: format string is defined here
  229 | dev_info(dphy->dev, "%s bitrate = %ld\n", __func__, bitrate);
      |                                   ~~^
      |                                     |
      |                                     long int

Change to printf code to %d.

Merge request reports