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

fix: Recorder::openLastSession format char #127

Open
ntlhui opened this issue Nov 14, 2024 · 0 comments · May be fixed by #157
Open

fix: Recorder::openLastSession format char #127

ntlhui opened this issue Nov 14, 2024 · 0 comments · May be fixed by #157
Assignees

Comments

@ntlhui
Copy link
Contributor

ntlhui commented Nov 14, 2024

[build] src/cellular/recorder.cpp: In member function ‘int Recorder::openLastSession(Deployment&, char*)’:
[build] src/cellular/recorder.cpp:268:49: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
[build]   268 |             snprintf(p_name_buf, NAME_MAX, "%08lu", entry.session_idx);
[build]       |                                             ~~~~^   ~~~~~~~~~~~~~~~~~
[build]       |                                                 |         |
[build]       |                                                 |         uint32_t {aka unsigned int}
[build]       |                                                 long unsigned int
[build]       |                                             %08u

Use https://en.cppreference.com/w/cpp/header/cinttypes

@ihagad ihagad self-assigned this Nov 14, 2024
@ihagad ihagad linked a pull request Dec 19, 2024 that will close this issue
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 a pull request may close this issue.

2 participants