Skip to content

Conversation

@HenrikCohrs
Copy link

@HenrikCohrs HenrikCohrs commented May 29, 2024

This commit adds the missing parameters to the printf() in void eepromtool(). Alias is cast to unsigned, as %x expects an unsigned int.

{
if(eeprom_writealias(slave, alias))
printf("Alias %4.4X written successfully to slave %d\n");
printf("Alias %4.4X written successfully to slave %d\n", (unsigned)alias, slave);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the explicit cast necessary? There are other similar calls for fprintf not having it.

Copy link
Author

@HenrikCohrs HenrikCohrs Jun 10, 2024

Choose a reason for hiding this comment

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

No, the explicit cast is not necessary.
I checked the documentation, and since the argument undergoes integer promotion, it is not needed.

I removed the explicit cast and force pushed the change.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@HenrikCohrs
Copy link
Author

I signed the CLA, but something does not seem to be working. In GitHub, it still says, that I need to sign it.

Screenshot 2025-10-01 212848

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