Core: Make writing of log lines a single fprintf call.
authorToby Gray <toby.gray@realvnc.com>
Thu, 27 Jun 2013 13:49:21 +0000 (14:49 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 27 Jun 2013 15:10:38 +0000 (17:10 +0200)
commitfb4c208c33788068bbca67bdd6d11127b5be5a26
tree959e65a2e2e8f9b557f6936a7fc00b493b484ecc
parente2c54d93b1fd89517b75e6761fad72f7c35532ad
Core: Make writing of log lines a single fprintf call.

Prior to this change a single line of logging performing several fprintf.

This change gets all the data for a line to be logged in a single
fprintf call. This reduced the chances of writes from another thread
getting intermixed with a log line.

It also makes it easier to change where logs are output to in the future.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/core.c
libusb/libusbi.h
libusb/version_nano.h