log: Fixes
authorMartin Minarik <minarik11@student.fiit.stuba.sk>
Fri, 8 Jun 2012 18:59:53 +0000 (20:59 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Jun 2012 19:14:37 +0000 (15:14 -0400)
commiteb587650d25e0d7f0836bc1a9b24f58ed50e870a
tree65aa40afdce5d8d8d166ef1e5d29fcf20daa5656
parent6d11836721a2cd2ad954d2b09ea4433b0c354006
log: Fixes

Drop the timestamp caching because it doesn't seem useful.
Use gettimeofday() to obtain system time.
Add null checks to both contstructor and destructor.
Drop the flushing and set line buffering instead.
Remove weston_log_print(), it only wraps vfprintf anyways.
src/log.c
src/log.h