drivers: can: use separate log modules for each driver
Use separate log modules for each CAN driver similar to other sub-systems/driver classes. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
c9effd0ff9
commit
de45e8ec72
10 changed files with 23 additions and 22 deletions
|
@ -14,10 +14,11 @@
|
|||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <drivers/can.h>
|
||||
#include <logging/log.h>
|
||||
|
||||
#include "can_stm32.h"
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_DECLARE(can_driver, CONFIG_CAN_LOG_LEVEL);
|
||||
LOG_MODULE_REGISTER(can_stm32, CONFIG_CAN_LOG_LEVEL);
|
||||
|
||||
#define CAN_INIT_TIMEOUT (10 * sys_clock_hw_cycles_per_sec() / MSEC_PER_SEC)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue