i2c: Fixed compilation errors when using DEBUG