chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update SUSE rules
[elogind.git]
/
logging.h
diff --git
a/logging.h
b/logging.h
index 0126de99eb94b2dec6d88896a809272a1f07d6f7..00b5f23b255eb4da13d85cdc35d9c50009ceb959 100644
(file)
--- a/
logging.h
+++ b/
logging.h
@@
-38,13
+38,13
@@
#undef err
#define err(format, arg...) \
do { \
#undef err
#define err(format, arg...) \
do { \
- log_message(LOG_ERR ,"%s: " format ,__F
ILE__ ,## arg);
\
+ log_message(LOG_ERR ,"%s: " format ,__F
UNCTION__ ,## arg);
\
} while (0)
#undef info
#define info(format, arg...) \
do { \
} while (0)
#undef info
#define info(format, arg...) \
do { \
- log_message(LOG_INFO ,"%s: " format ,__F
ILE__ ,## arg);
\
+ log_message(LOG_INFO ,"%s: " format ,__F
UNCTION__ ,## arg);
\
} while (0)
#ifdef DEBUG
} while (0)
#ifdef DEBUG
@@
-61,7
+61,7
@@
extern void log_message(int priority, const char *format, ...)
#undef logging_init
static inline void logging_init(const char *program_name)
{
#undef logging_init
static inline void logging_init(const char *program_name)
{
- openlog(program_name, LOG_PID, LOG_DAEMON);
+ openlog(program_name, LOG_PID
| LOG_CONS
, LOG_DAEMON);
}
#undef logging_close
}
#undef logging_close