Skip to content

Conversation

@JonyZhang7
Copy link

@JonyZhang7 JonyZhang7 commented Oct 25, 2025

Use zu% format for size_t type.
Use d% format for int type.
Use u% format for uint32_t type.
fix build error because of conflicting types

@zephyrbot zephyrbot added area: USB Universal Serial Bus area: Samples Samples labels Oct 25, 2025
@JiafeiPan JiafeiPan added this to the v4.3.0 milestone Oct 25, 2025
@JiafeiPan JiafeiPan added the bug The issue is a bug, or the PR is fixing a bug label Oct 25, 2025
JiafeiPan
JiafeiPan previously approved these changes Oct 25, 2025
JiafeiPan
JiafeiPan previously approved these changes Oct 27, 2025
void sys_trace_socket_listen_exit(int sock, int ret);
void sys_trace_socket_accept_enter(int sock);
void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const uint32_t *addrlen,
void sys_trace_socket_accept_exit(int sock, const struct sockaddr *addr, const size_t *addrlen,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like stray change, please remove it from this commit.

Copy link
Author

Choose a reason for hiding this comment

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

Looks like stray change, please remove it from this commit.

thanks, I submit a patch to fix this.

@JonyZhang7 JonyZhang7 changed the title usb: fix build warning for printing format fix build error Oct 27, 2025
@JiafeiPan JiafeiPan requested a review from jfischer-no October 27, 2025 13:01
@jfischer-no jfischer-no changed the title fix build error Fix warnings caused by incorrect format specifiers when building for the 64-bit platform Oct 27, 2025
Use zu% format for size_t type.
Use d% format for int type.
Use u% format for uint32_t type.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
@dleach02
Copy link
Member

dleach02 commented Oct 29, 2025

@JonyZhang7 I'm assuming @jfischer-no is referring to the commit titled "tracing: fix build error because of conflicting types".

Lets just put text comment in the body of the commit message on what you are doing and not put in the dump of the error.

@JonyZhang7
Copy link
Author

@JonyZhang7 I'm assuming @jfischer-no is referring to the commit titled "tracing: fix build error because of conflicting types".

Lets just put text comment in the body of the commit message on what you are doing and not put in the dump of the error.

thanks

@JonyZhang7 JonyZhang7 force-pushed the usb_fix_warning branch 2 times, most recently from 1eb0680 to 5840dfa Compare October 30, 2025 06:26
@sonarqubecloud
Copy link

Change addrlen parameter type from 'const size_t *' to
'const uint32_t *' to match the declaration in tracing_ctf.h
and resolve compilation error.

Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
@dleach02
Copy link
Member

dleach02 commented Nov 4, 2025

@jfischer-no I believe @JonyZhang7 has addressed your requests. Can you confirm.

@cfriedt
Copy link
Member

cfriedt commented Nov 5, 2025

@JonyZhang7 - can you please link an issue to this PR? A linked issue is required for all bugfix PRs post RC2

@JiafeiPan JiafeiPan modified the milestones: v4.3.0, v4.4.0 Nov 6, 2025
@JonyZhang7
Copy link
Author

@JonyZhang7 - can you please link an issue to this PR? A linked issue is required for all bugfix PRs post RC2

Hi @cfriedt , this '#97320' leads to this common issue, which is a unmerged PR, we can put this PR into next release, thanks!

Copy link
Contributor

@tmon-nordic tmon-nordic left a comment

Choose a reason for hiding this comment

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

I would prefer to have %zu, %d and u% in the commit message instead of zu%, d% and u%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Samples Samples area: Tracing Tracing area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants