FreeRTOS / FreeRTOS-Cellular-Interface

FreeRTOS Cellular Interface implementation of the 3GPP TS v27.007 standard.
MIT License
85 stars 59 forks source link

Wrong formatting / argument type in log traces generate warnings #150

Closed guillaumeVolery closed 1 year ago

guillaumeVolery commented 1 year ago

Problem

By building the library with arm-none-eabi-gcc compiler and setting the flag -Werror, the library is producing the following warnings (errors) due to the use of wrong format specifier in the log traces... We have the goal to deliver a warning-free software for our next firmware release.

PS: Thank for your job and for this library, you are awsome šŸ‘

The correction is very simple, use %lu instead of %u, use %ld instead of %d.

Awaited result

New release of the library implementing the correction above and no more warning generated.

List of reported errors:

guillaumeVolery commented 1 year ago

I have a correction ready to be pushed on freshly created branch called "150". Unfortunately, I don't have to right to push to the repo... Would it be a possibility to get the rights ?

moninom1 commented 1 year ago

Hi @guillaumeVolery ,

Thank you so much for reporting the issue. That would be great if you want to contribute.

Unfortunately, I don't have to right to push to the repo... Would it be a possibility to get the rights ?

If the changes are in your branch, you should be able to create a PR to the main branch. Can you please let me know what issue you are facing.

guillaumeVolery commented 1 year ago

Hi @moninom1

Thank you for your reply.

This is actually my problem:

git push --set-upstream origin Issue150
remote: Permission to FreeRTOS/FreeRTOS-Cellular-Interface.git denied to guillaumeVolery.
fatal: unable to access 'https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface.git/': The requested URL returned error: 403

I cannot push my new branch on the remote.

moninom1 commented 1 year ago

Hi @guillaumeVolery

You need to create a fork of the repo and then push the changes to your branch in your forked repo. After that you will be able to create a PR to main branch. Please check the following steps :

1: Fork the FreeRTOS-Cellular-Interface repo 2: Clone the forked FreeRTOS-Cellular-Interface repo. 3: Add changes locally and commit it on branch Issue150. 4: Push the changes to your own forked GitHub repo branch Issue150. 5: Create a pull request from forked FreeRTOS-Cellular-Interface repo branch Issue150 to FreeRTOS main.

Let me know if this works.

guillaumeVolery commented 1 year ago

Hi @moninom1

Thank you for your insights. I have completed the process and you will find the pull request here.

šŸ‘

chinglee-iot commented 1 year ago

PR #154 is merged. We will close this issue. Feel free to reopen this issue if any further problem.