Skip to content

Conversation

xypron
Copy link
Collaborator

@xypron xypron commented Jan 13, 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 to 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 to 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.

1 participant