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://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2286 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 14 years ago
parent 227d6f1b56
commit 43a9842b28
  1. 9
      src/log.c

@ -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);
break;
case 'O': /* off_t */
o = va_arg(ap, off_t);
buffer_append_off_t(srv->errorlog_buf, o);
break;
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);
break;
case '(':
case ')':
case '<':

Loading…
Cancel
Save