summaryrefslogtreecommitdiff
path: root/libusb/core.c
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2013-06-30 00:32:10 +0100
committerPete Batard <pete@akeo.ie>2013-06-30 00:32:10 +0100
commit7b893cc7cee185c0bf771166ca61a05b32800556 (patch)
tree2c952847f779312839b9c53ca57830371d622fc5 /libusb/core.c
parentfb4c208c33788068bbca67bdd6d11127b5be5a26 (diff)
downloadlibusb-7b893cc7cee185c0bf771166ca61a05b32800556.tar.gz
Core: Fix writing of log lines a single fprintf call
* fb4c208c33788068bbca67bdd6d11127b5be5a26 broke cygwin compilation due to __GCC__ not being defined * The actual issue is that __GNUC__ rather than __GCC__ should have been used all along * Also fixes gettimeofday() usage for MinGW/Cygwin * Also increase log buffer size to 1K, fix a broken fprintf in core.c and sort whitespaces
Diffstat (limited to 'libusb/core.c')
-rw-r--r--libusb/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 53f716f..ec37ba1 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -2020,7 +2020,7 @@ int usbi_gettimeofday(struct timeval *tp, void *tzp)
static void usbi_log_str(struct libusb_context *ctx, const char * str)
{
UNUSED(ctx);
- fprintf(stderr, str);
+ fprintf(stderr, "%s", str);
}
void usbi_log_v(struct libusb_context *ctx, enum libusb_log_level level,