projects
/
framework
/
system
/
dlog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045d495
)
added syslog.h in dlog.c and dlogutil bug fix
author
juho
<juho80.son@samsung.com>
Wed, 12 Dec 2012 02:15:54 +0000
(11:15 +0900)
committer
juho
<juho80.son@samsung.com>
Wed, 12 Dec 2012 08:19:36 +0000
(17:19 +0900)
miss add syslog.h in dlog.c
and dlogutil "-b" option bug fix
Change-Id: I6b692bf643958d009d22947f48ffec66eb07efbe
log.c
patch
|
blob
|
history
logutil.c
patch
|
blob
|
history
diff --git
a/log.c
b/log.c
index
42cf02e
..
81c1f0b
100755
(executable)
--- a/
log.c
+++ b/
log.c
@@
-23,6
+23,7
@@
#include <errno.h>
#include <dlog.h>
#ifdef SD_JOURNAL_SUPPORT
+#include <syslog.h>
#include <systemd/sd-journal.h>
#endif
#define LOG_BUF_SIZE 1024
diff --git
a/logutil.c
b/logutil.c
index
1e91d38
..
d4d5dce
100755
(executable)
--- a/
logutil.c
+++ b/
logutil.c
@@
-577,7
+577,7
@@
int main(int argc, char **argv)
case 'b': {
char *buf;
- 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);
}