Merge pull request #1400 from JinglongZhang/master

fix an i2c debug print bug
This commit is contained in:
Bernard Xiong 2018-05-04 09:04:30 +08:00 committed by GitHub
commit 76c30dc399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;