Core: Use fputs(3) instead of fprintf(3)
authorTim Roberts <timr@probo.com>
Sun, 30 Jun 2013 07:54:20 +0000 (09:54 +0200)
committerPete Batard <pete@akeo.ie>
Sun, 30 Jun 2013 20:14:24 +0000 (21:14 +0100)
This is a micro-optimisation, but it should make the code easier to understand.

libusb/core.c
libusb/version_nano.h

index ec37ba1..0795597 100644 (file)
@@ -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, "%s", str);
+       fputs(str, stderr);
 }
 
 void usbi_log_v(struct libusb_context *ctx, enum libusb_log_level level,
index 5ab4d98..41e8b15 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10765
+#define LIBUSB_NANO 10766