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:
Henrik Brix Andersen 2022-02-22 12:06:54 +01:00 committed by Anas Nashif
commit de45e8ec72
10 changed files with 23 additions and 22 deletions

View file

@ -13,10 +13,9 @@
#include <device.h>
#include <sys/byteorder.h>
#include <fsl_flexcan.h>
#define LOG_LEVEL CONFIG_CAN_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(can_mcux_flexcan);
LOG_MODULE_REGISTER(can_mcux_flexcan, CONFIG_CAN_LOG_LEVEL);
#define SP_IS_SET(inst) DT_INST_NODE_HAS_PROP(inst, sample_point) ||