i2c: Fixed compilation errors when using DEBUG

This fixes a syntax error and a missing argument when compiling with debug enabled.