Signed-off-by: Steve Bennett <steveb@workware.net.au>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
va_start(args, format);
n = vsnprintf(buf, sizeof(buf), format, args);
va_start(args, format);
n = vsnprintf(buf, sizeof(buf), format, args);
+ /* This will never happen because we are sure to use fd_printf() for short sequences */
+ assert(n < sizeof(buf));
va_end(args);
IGNORE_RC(write(fd, buf, n));
}
va_end(args);
IGNORE_RC(write(fd, buf, n));
}