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

pkg/littlefs: make use of RIOT's log module instead of pkg provided macros #20894

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Enoch247
Copy link
Contributor

@Enoch247 Enoch247 commented Oct 7, 2024

Contribution description

This patch replaces littlefs's logging with RIOT's own logging module.

Testing procedure

make -C tests/pkg/littlefs all term
make -C tests/pkg/littlefs2 all term

Issues/PRs references

Some log messages in the tests needed to be silenced due to this patch also fixing broken support of logging in the package. See #20889.

@github-actions github-actions bot added Area: tests Area: tests and testing framework Area: pkg Area: External package ports labels Oct 7, 2024
Copy link
Contributor

@mguetschow mguetschow left a comment

Choose a reason for hiding this comment

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

Thanks, good idea!

pkg/littlefs2/Makefile Show resolved Hide resolved
tests/pkg/littlefs/Makefile Show resolved Hide resolved
pkg/littlefs/lfs_log.h Show resolved Hide resolved
pkg/littlefs/Makefile Show resolved Hide resolved
Copy link
Contributor

@mguetschow mguetschow left a comment

Choose a reason for hiding this comment

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

Looks good then, please squash :)

@mguetschow mguetschow changed the title littlefs: make use of RIOT's log module instead of pkg proided macros littlefs: make use of RIOT's log module instead of pkg provided macros Oct 11, 2024
@mguetschow mguetschow changed the title littlefs: make use of RIOT's log module instead of pkg provided macros pkg/littlefs: make use of RIOT's log module instead of pkg provided macros Oct 11, 2024
This patch replaces the package supplied logging macros with RIOT's. It
also removes the requirement that DEVELHELP be defined to enable
logging. Instead, logging can be enabled/dissabled via the log level.

The patch also replaceses the package's trace macro with RIOT's DEBUG
macro.
This patch replaces the package supplied logging macros with RIOT's. It
also removes the requirement that DEVELHELP be defined to enable
logging. Instead, logging can be enabled/dissabled via the log level.
@Enoch247
Copy link
Contributor Author

Looks good then, please squash :)

done

@mguetschow mguetschow added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 17, 2024
@riot-ci
Copy link

riot-ci commented Oct 17, 2024

Murdock results

✔️ PASSED

96e5f14 pkg/littlefs: make use of RIOT's logging

Success Failures Total Runtime
10214 0 10215 22m:03s

Artifacts

@mguetschow mguetschow added this pull request to the merge queue Oct 17, 2024
Merged via the queue into RIOT-OS:master with commit 4f5c0ed Oct 17, 2024
26 checks passed
@Enoch247 Enoch247 deleted the littlefs-logging branch October 21, 2024 14:33
@benpicco benpicco added this to the Release 2024.10 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants