-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: watchdog: Migrate to new logging subsys #9367
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
drivers: watchdog: Migrate to new logging subsys #9367
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9367 +/- ##
==========================================
+ Coverage 52.19% 54.38% +2.19%
==========================================
Files 215 216 +1
Lines 26010 29924 +3914
Branches 5594 6836 +1242
==========================================
+ Hits 13576 16275 +2699
- Misses 10175 11134 +959
- Partials 2259 2515 +256
Continue to review full report at Codecov.
|
ioannisg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I would rename commit title prefix to
drivers: watchdog: nrf:
(nrf: is used for Nordic SOC-related patches, AFAICS)
drivers/watchdog/wdt_nrfx.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@ioannisg The commit title is okay as it is. This is a shim using the nrfx driver underneath, so it is perfectly fine to use the "nrfx:" prefix. Such prefix would be inappropriate for a commit changing something related to Nordic SoCs but not using the nrfx driver package. |
2ab8896 to
231f6e1
Compare
|
@Olivier-ProGlove CONFIG_SYS_LOG_WDT_LEVEL depends on |
231f6e1 to
a7c4b25
Compare
|
@ydamigos I have updated the pull-request to migrate all watchdog drivers to |
Migrate from `SYS_LOG` to `LOG` logging mechanism. Signed-off-by: Olivier Martin <[email protected]>
a7c4b25 to
ce25563
Compare
|
I have rebased the pull-request to fix the conflict after this pull-request has been merged 8cf8db3 |
galak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix this for the change in LOG_MODULE_REGISTER to take the name as a param, and remove LOG_MODULE_NAME
| #define LOG_MODULE_NAME wdt_nrfx | ||
| #define LOG_LEVEL CONFIG_LOG_WDT_LEVEL | ||
| #include <logging/log.h> | ||
| LOG_MODULE_REGISTER(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix this for the change in LOG_MODULE_REGISTER to take the name as a param, and remove LOG_MODULE_NAME
|
cherrypicked in #10029 |
|
@nashif That's a better cherry-pick compared to #9429 (comment) 👍 |
|
addressed in #10029 |
Migrate from
SYS_LOGtoLOGlogging mechanism.Signed-off-by: Olivier Martin [email protected]