]> mj.ucw.cz Git - libucw.git/commit
Logging: Cleanup of log.c
authorMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 16:52:31 +0000 (17:52 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 16:52:31 +0000 (17:52 +0100)
commit66a5e689124dc64357729702948f4bfb8a03e8da
tree563627b50e0bde7a1516ae5cb28a3f076cc135ff
parent6a264fca602966e00c71e7c33e453dae0cd8a168
Logging: Cleanup of log.c

   o  log_progname[] moved to log_init()
   o  Both vmsg() and log_pass_msg() now allocate the buffer on the stack
      if the message is smaller than 256 bytes.
   o  log_pid is used instead of repeated calls to getpid()
   o  sizeof(array) always preferred over repeated constants
   o  Many coding style cleanups to make the old and new code fit together.
   o  Namespace cleanups
   o  Updated comments
ucw/log.c
ucw/log.h