Skip to content

Commit 410c02a

Browse files
henrikbrixandersenjhedberg
authored andcommitted
drivers: can: sja1000: remove excessive debug logging
Remove excessive debug logging from the SJA1000 driver backend. Logging each register access makes generic CAN debug logging unusable. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent fefbb28 commit 410c02a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/can/can_sja1000.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,14 @@ static inline void can_sja1000_write_reg(const struct device *dev, uint8_t reg,
2323
{
2424
const struct can_sja1000_config *config = dev->config;
2525

26-
LOG_DBG("write reg %d = 0x%02x", reg, val);
2726
return config->write_reg(dev, reg, val);
2827
}
2928

3029
static inline uint8_t can_sja1000_read_reg(const struct device *dev, uint8_t reg)
3130
{
3231
const struct can_sja1000_config *config = dev->config;
33-
uint8_t val;
3432

35-
val = config->read_reg(dev, reg);
36-
LOG_DBG("read reg %d = 0x%02x", reg, val);
37-
38-
return val;
33+
return config->read_reg(dev, reg);
3934
}
4035

4136
static inline int can_sja1000_enter_reset_mode(const struct device *dev)

0 commit comments

Comments
 (0)