projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve wording in REPORTING-BUGS
[fio.git]
/
log.c
diff --git
a/log.c
b/log.c
index 7e8b13b31a84c906a09db6fce5044ef8e051fcae..6c36813d4a9912b5e8742d2da55304f56b00f941 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-1,5
+1,4
@@
#include <unistd.h>
#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
#include <stdarg.h>
#include <syslog.h>
#include <string.h>
#include <stdarg.h>
#include <syslog.h>
@@
-16,7
+15,7
@@
size_t log_info_buf(const char *buf, size_t len)
return 0;
if (is_backend) {
return 0;
if (is_backend) {
- size_t ret = fio_server_text_output(FIO_LOG_INFO, buf, len);
+ s
s
ize_t ret = fio_server_text_output(FIO_LOG_INFO, buf, len);
if (ret != -1)
return ret;
}
if (ret != -1)
return ret;
}
@@
-66,10
+65,10
@@
void log_prevalist(int type, const char *fmt, va_list args)
free(buf2);
}
free(buf2);
}
-size_t log_info(const char *format, ...)
+s
s
ize_t log_info(const char *format, ...)
{
va_list args;
{
va_list args;
- size_t ret;
+ s
s
ize_t ret;
va_start(args, format);
ret = log_valist(format, args);
va_start(args, format);
ret = log_valist(format, args);
@@
-103,9
+102,9
@@
int log_info_flush(void)
return fflush(f_out);
}
return fflush(f_out);
}
-size_t log_err(const char *format, ...)
+s
s
ize_t log_err(const char *format, ...)
{
{
- size_t ret;
+ s
s
ize_t ret;
int len;
char *buffer;
va_list args;
int len;
char *buffer;
va_list args;