chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: check whether newly created session is active
[elogind.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index 4ec6b73888279217f1dd316b12965863753cc55f..3776f0d9d89a920781166c90a15ba66937a93ce6 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-238,11
+238,11
@@
void log_set_max_level(int level) {
}
static int write_to_console(
}
static int write_to_console(
- int level,
- const char*file,
- int line,
- const char *func,
- const char *buffer) {
+
int level,
+
const char*file,
+
int line,
+
const char *func,
+
const char *buffer) {
char location[64];
struct iovec iovec[5];
char location[64];
struct iovec iovec[5];
@@
-378,8
+378,8
@@
static int log_dispatch(
return 0;
/* Patch in LOG_DAEMON facility if necessary */
return 0;
/* Patch in LOG_DAEMON facility if necessary */
- if (
LOG_FAC(level
) == 0)
- level = LOG_
MAKEPRI(LOG_DAEMON, LOG_PRI(level)
);
+ if (
(level & LOG_FACMASK
) == 0)
+ level = LOG_
DAEMON | LOG_PRI(level
);
do {
char *e;
do {
char *e;