Skip to content

samv7: fix printf warnings in QSPI#8613

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Cynerd:samv7-qspi-warnings
Feb 21, 2023
Merged

samv7: fix printf warnings in QSPI#8613
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Cynerd:samv7-qspi-warnings

Conversation

@Cynerd
Copy link
Copy Markdown
Contributor

@Cynerd Cynerd commented Feb 21, 2023

No description provided.

@Cynerd Cynerd force-pushed the samv7-qspi-warnings branch from 1d62d8c to 63b28c5 Compare February 21, 2023 16:22
@xiaoxiang781216
Copy link
Copy Markdown
Contributor

Let's ignore the ci broken which is fixed by #8611 and merge this simple change.

@xiaoxiang781216 xiaoxiang781216 merged commit 60bd4ac into apache:master Feb 21, 2023
uint32_t regval;

spiinfo("frequency=%d\n", frequency);
spiinfo("frequency=%"PRId32"\n", frequency);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRIu32 would be a better candidate for unsigned types.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. I replaced it to be the same as so far, only to fix the warning. Let me modify that. It should be short patch again.

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.

4 participants