Skip to content

phy: m31: correct printf code in sys_m31_dphy_tx_configure()#7

Open
xypron wants to merge 1 commit intoDC-DeepComputing:fm7110-6.6from
xypron:phy-m31-dphy-tx0
Open

phy: m31: correct printf code in sys_m31_dphy_tx_configure()#7
xypron wants to merge 1 commit intoDC-DeepComputing:fm7110-6.6from
xypron:phy-m31-dphy-tx0

Conversation

@xypron
Copy link
Contributor

@xypron xypron commented Feb 24, 2025

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 printf code to %d.

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 printf code to %d.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants