Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: JH7110_VisionFive2_6.6.y_devel
Choose a base branch
from

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 <[email protected]>
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