Simplify logging a bit
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 24 Jun 2009 12:16:25 +0000 (15:16 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 24 Jun 2009 12:16:25 +0000 (15:16 +0300)
commit271069f90046994b005a469c80c2e150a41af9f3
treeda0e227e4f66c55f97e8ff35fa342ba37d2066e1
parent51520de1d3dffedc0c047b6da3fa68e98c92acc0
Simplify logging a bit
- precalculate the message length, relying on C99 vsnprintf() semantics
- generate the log message and rest of the record in rpmlog() already,
  and just pass the record to lower level to do actual logging
- also something was wrong in the old version as valgrind complained
  about illegal reads, that is also cured here
rpmio/rpmlog.c