
22 Mar
2009
22 Mar
'09
3:23 p.m.
On Sun, Mar 22, 2009 at 10:21 AM, Wolfgang Denk wd@denx.de wrote:
Dear Jon,
In message 9e4733910903220701h104932cdu6b226e5c05e9b3d4@mail.gmail.com you wrote:
I've test this version with the eeprom and it works correctly.
It may work, but such a macro definition violates some rules.
+#define printf(format, arg...) if (gd->have_console) printf(format, ## arg)
There are only a few places in cpu/mpc5xxx/i2c.c where printf() is used that we should explicitly code this, there.
Would it be better to put the check for (gd->have_console) into printf itself?
--
Jon Smirl
jonsmirl@gmail.com