[En-Nut-Discussion] Possible Bug with WinAVR-20050214

Harald Kipp harald.kipp at egnite.de
Tue Mar 29 13:30:28 CEST 2005


Hi,

I used WinAVR-20050214 for some time with good results.
However, in a larger application I have

void ConfigPrintULong(FILE * stream, int id, u_char * item, u_long val)
{
     syslog_P(LOG_DEBUG, PSTR("TCP<210 %d %s %lu"), id + 1, item, val);
     fprintf_P(stream, PSTR("210 %d %s %lu\r\n"), id + 1, item, val);
}

The syslog_P output is correct for 'val', but
the fprintf_P prints a wrong value for 'val'.

Recompiling with WinAVR-20030913 fixes this.

Harald




More information about the En-Nut-Discussion mailing list