Jean writes:
Jean writes:

Hello,

under some circumstances the following small example prints lots of
garbage onto the console and into the syslog:

#include <syslog.h>
int main ()
{
        openlog("foo", LOG_CONS|LOG_NDELAY|LOG_PID|LOG_PERROR, LOG_DAEMON);
        syslog (LOG_WARNING, "mlock: %m");
        return 1;
}

The reason is, that sprintf returns with -1 and vsyslog dumps the
complete buffer onto stderr and the syslogd socket. The following
patch would fix the problem:

ddcc/klee-uclibc-0.9.33.2,mephi42/uClibc,brgl/uclibc-ng,ysat0/uClibc,foss-xtensa/uClibc,kraj/uClibc,kraj/uclibc-ng,majek/uclibc-vx32,ChickenRunjyd/klee-uclibc,ffainelli/uClibc,ddcc/klee-uclibc-0.9.33.2,hjl-tools/uClibc,brgl/uclibc-ng,hwoarang/uClibc,wbx-github/uclibc-ng,ndmsystems/uClibc,waweber/uclibc-clang,ffainelli/uClibc,hjl-tools/uClibc,groundwater/uClibc,kraj/uClibc,hwoarang/uClibc,groundwater/uClibc,mephi42/uClibc,kraj/uclibc-ng,brgl/uclibc-ng,majek/uclibc-vx32,mephi42/uClibc,ffainelli/uClibc,ffainelli/uClibc,kraj/uclibc-ng,ndmsystems/uClibc,klee/klee-uclibc,foss-for-synopsys-dwc-arc-processors/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,klee/klee-uclibc,m-labs/uclibc-lm32,foss-xtensa/uClibc,kraj/uClibc,ChickenRunjyd/klee-uclibc,ChickenRunjyd/klee-uclibc,waweber/uclibc-clang,skristiansson/uClibc-or1k,OpenInkpot-archive/iplinux-uclibc,mephi42/uClibc,OpenInkpot-archive/iplinux-uclibc,czankel/xtensa-uclibc,OpenInkpot-archive/iplinux-uclibc,gittup/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,czankel/xtensa-uclibc,foss-xtensa/uClibc,kraj/uClibc,majek/uclibc-vx32,hwoarang/uClibc,ndmsystems/uClibc,OpenInkpot-archive/iplinux-uclibc,atgreen/uClibc-moxie,ysat0/uClibc,majek/uclibc-vx32,brgl/uclibc-ng,waweber/uclibc-clang,wbx-github/uclibc-ng,skristiansson/uClibc-or1k,hjl-tools/uClibc,czankel/xtensa-uclibc,m-labs/uclibc-lm32,kraj/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,ffainelli/uClibc,ChickenRunjyd/klee-uclibc,klee/klee-uclibc,czankel/xtensa-uclibc,wbx-github/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,klee/klee-uclibc,ndmsystems/uClibc,waweber/uclibc-clang,hjl-tools/uClibc,ysat0/uClibc,ysat0/uClibc,groundwater/uClibc,groundwater/uClibc,skristiansson/uClibc-or1k,gittup/uClibc,gittup/uClibc,atgreen/uClibc-moxie,gittup/uClibc,hjl-tools/uClibc,m-labs/uclibc-lm32,wbx-github/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,foss-xtensa/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,skristiansson/uClibc-or1k,atgreen/uClibc-moxie,groundwater/uClibc