| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
| 17 |
|
#include "log.h" |
| 18 |
#include "io.h" |
#include "io.h" |
| 19 |
|
#include "common.h" |
| 20 |
#include <stdio.h> |
#include <stdio.h> |
| 21 |
#include <stdarg.h> |
#include <stdarg.h> |
| 22 |
#include <sys/types.h> |
#include <sys/types.h> |
| 72 |
{ |
{ |
| 73 |
va_list args; |
va_list args; |
| 74 |
int retval; |
int retval; |
| 75 |
char buf[1024]; |
char buf[LINE_BUFFER_LEN]; |
| 76 |
|
|
| 77 |
log_head(buf, sizeof(buf)); |
log_head(buf, sizeof(buf)); |
| 78 |
strncat(buf, format, sizeof(buf) - strnlen(buf, sizeof(buf))); |
strncat(buf, format, sizeof(buf) - strnlen(buf, sizeof(buf))); |
| 90 |
{ |
{ |
| 91 |
va_list args; |
va_list args; |
| 92 |
int retval; |
int retval; |
| 93 |
char buf[1024]; |
char buf[LINE_BUFFER_LEN]; |
| 94 |
|
|
| 95 |
log_head(buf, sizeof(buf)); |
log_head(buf, sizeof(buf)); |
| 96 |
strncat(buf, format, sizeof(buf) - strnlen(buf, sizeof(buf))); |
strncat(buf, format, sizeof(buf) - strnlen(buf, sizeof(buf))); |