miss add syslog.h in dlog.c
and dlogutil "-b" option bug fix
Change-Id: I6b692bf643958d009d22947f48ffec66eb07efbe
#include <errno.h>
#include <dlog.h>
#ifdef SD_JOURNAL_SUPPORT
#include <errno.h>
#include <dlog.h>
#ifdef SD_JOURNAL_SUPPORT
#include <systemd/sd-journal.h>
#endif
#define LOG_BUF_SIZE 1024
#include <systemd/sd-journal.h>
#endif
#define LOG_BUF_SIZE 1024
- if (asprintf(&buf, LOG_FILE_DIR "/%s", optarg) == -1) {
+ if (asprintf(&buf, LOG_FILE_DIR "%s", optarg) == -1) {
asprintf(stderr,"Can't malloc LOG_FILE_DIR\n");
exit(-1);
}
asprintf(stderr,"Can't malloc LOG_FILE_DIR\n");
exit(-1);
}