aboutsummaryrefslogtreecommitdiffstats
path: root/libusb
diff options
context:
space:
mode:
authorTim Roberts <timr@probo.com>2013-06-30 09:54:20 +0200
committerPete Batard <pete@akeo.ie>2013-06-30 21:14:24 +0100
commit975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2 (patch)
tree097cff2cc07fa9cc97fb9fb2c02db0be9a309a49 /libusb
parent7b893cc7cee185c0bf771166ca61a05b32800556 (diff)
downloadandroid_external_libusbx-975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2.tar.gz
android_external_libusbx-975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2.tar.bz2
android_external_libusbx-975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2.zip
Core: Use fputs(3) instead of fprintf(3)
This is a micro-optimisation, but it should make the code easier to understand.
Diffstat (limited to 'libusb')
-rw-r--r--libusb/core.c2
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c
index ec37ba1..0795597 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, "%s", str);
+ fputs(str, stderr);
}
void usbi_log_v(struct libusb_context *ctx, enum libusb_log_level level,
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 5ab4d98..41e8b15 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10765
+#define LIBUSB_NANO 10766