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

ARM32 bit fixes, for 64bit printf format specifier #468

Merged
merged 4 commits into from
Jun 14, 2019

Conversation

antony-rheneus
Copy link
Contributor

Signed-off-by: Antony Rheneus arheneus@marvell.com

Signed-off-by: Antony Rheneus <arheneus@marvell.com>
Signed-off-by: Antony Rheneus <arheneus@marvell.com>
Signed-off-by: Antony Rheneus <arheneus@marvell.com>
Signed-off-by: Antony Rheneus <arheneus@marvell.com>
@kcudnik
Copy link
Collaborator

kcudnik commented Jun 14, 2019

why arm is not accepting standard prefixes ? this actually makes code much more messy :/

@jleveque
Copy link
Contributor

jleveque commented Jun 14, 2019

@kcudnik: The "PRI..." constants get defined differently depending on the architecture you're compiling for, thus making the code more portable. Some archs define a 64-bit int as a long, some as a long long. Withe this change, we never have to worry about the underlying type.

@kcudnik
Copy link
Collaborator

kcudnik commented Jun 14, 2019

yea grepped via headers, more portable less readability XD

@jleveque
Copy link
Contributor

Yes, unfortunately we sacrifice readability for portability.

@lguohan lguohan merged commit 763c6cb into sonic-net:master Jun 14, 2019
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
* ARM32 bit fixes, for 64bit printf format specifier

Signed-off-by: Antony Rheneus <arheneus@marvell.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.

4 participants