diff options
author | Tim Roberts <timr@probo.com> | 2013-06-30 09:54:20 +0200 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2013-06-30 21:14:24 +0100 |
commit | 975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2 (patch) | |
tree | 097cff2cc07fa9cc97fb9fb2c02db0be9a309a49 | |
parent | 7b893cc7cee185c0bf771166ca61a05b32800556 (diff) | |
download | libusb-975c4fd6255a3ef9cc52ba0c9b5f94afec0ab7d2.tar.gz |
Core: Use fputs(3) instead of fprintf(3)
This is a micro-optimisation, but it should make the code easier to understand.
-rw-r--r-- | libusb/core.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
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 |