> > - LOG_DEBUG("Serving %s length=%u", url, len); > > + LOG_DEBUG("Serving %s length=%u", url, (unsigned int) > len);
On 16/05/2009, Rick Altherr <kc8...@kc8apf.net> wrote: > As for the patch, the correct format string for size_t is %zu. I'll commit > that fix in the morning if no one beats me to it. I understand the portable way to do this (without requiring C99) is to cast it to (unsigned long) and use %lu. Because I think that mingw/Windows won't work with %zu (In fact it just prints out the "zu" literally) . If we're sure that len isn't going to be too huge you could cast to (unsigned int) I guess. BTW I vaguely remember seeing other similar patches go through this list in the past that changed things to %z. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development