Add 'O' and 'X' to format characters in log_error_write

upper case stands for "don't append space"; o/O is for off_t, x/X for int as hex

git-svn-id: svn:// 152afb58-edef-0310-8abb-c4023f1b3aa9
Stefan Bühler 2008-08-19 16:41:42 +00:00
parent 227d6f1b56
commit 43a9842b28
1 changed files with 9 additions and 0 deletions

View File

@ -244,6 +244,15 @@ int log_error_write(server *srv, const char *filename, unsigned int line, const
d = va_arg(ap, int);
buffer_append_long(srv->errorlog_buf, d);
case 'O': /* off_t */
o = va_arg(ap, off_t);
buffer_append_off_t(srv->errorlog_buf, o);
case 'X': /* int (hex) */
d = va_arg(ap, int);
buffer_append_string_len(srv->errorlog_buf, CONST_STR_LEN("0x"));
buffer_append_long_hex(srv->errorlog_buf, d);
case '(':
case ')':
case '<':