projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b893cc
)
Core: Use fputs(3) instead of fprintf(3)
author
Tim Roberts
<timr@probo.com>
Sun, 30 Jun 2013 07:54:20 +0000
(09:54 +0200)
committer
Pete 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
patch
|
blob
|
history
libusb/version_nano.h
patch
|
blob
|
history
diff --git
a/libusb/core.c
b/libusb/core.c
index
ec37ba1
..
0795597
100644
(file)
--- 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);
- fp
rintf(stderr, "%s", st
r);
+ fp
uts(str, stder
r);
}
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
(file)
--- a/
libusb/version_nano.h
+++ b/
libusb/version_nano.h
@@
-1
+1
@@
-#define LIBUSB_NANO 1076
5
+#define LIBUSB_NANO 1076
6