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>
Tue, 21 Jul 2009 06:42:43 +0000 (09:42 +0300)
commit8866c95974c14e873ce44c0e20346d1e11c42d02
tree3e0c35b90737909ad40e9ebe317fd97fd60bcbd3
parent08300c73af818853870671c4650660e261c41af0
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
(cherry picked from commit 271069f90046994b005a469c80c2e150a41af9f3)
rpmio/rpmlog.c