From f1e2dd487e430bed3842d82823288892989cc62b Mon Sep 17 00:00:00 2001 From: ZHANG Jinglong Date: Thu, 3 May 2018 23:44:56 +0800 Subject: [PATCH] fix an i2c debug print bug --- components/drivers/i2c/i2c_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/i2c/i2c_dev.c b/components/drivers/i2c/i2c_dev.c index 377e394cb..5713a2893 100644 --- a/components/drivers/i2c/i2c_dev.c +++ b/components/drivers/i2c/i2c_dev.c @@ -57,7 +57,7 @@ static rt_size_t i2c_bus_device_write(rt_device_t dev, RT_ASSERT(bus != RT_NULL); RT_ASSERT(buffer != RT_NULL); - i2c_dbg("I2C bus dev writing %u bytes.\n", dev->parent.name, count); + i2c_dbg("I2C bus dev [%s] writing %u bytes.\n", dev->parent.name, count); addr = pos & 0xffff; flags = (pos >> 16) & 0xffff;