chiark / gitweb /
path_id: remove SUSE specific PATH
[elogind.git] / logging.h
index 0126de99eb94b2dec6d88896a809272a1f07d6f7..e0dcb80305ecb08e081200801451b9f93096bdf2 100644 (file)
--- a/logging.h
+++ b/logging.h
 #undef err
 #define err(format, arg...)                                                    \
        do {                                                                    \
-               log_message(LOG_ERR ,"%s: " format ,__FILE__ ,## arg);          \
+               log_message(LOG_ERR ,"%s: " format ,__FUNCTION__ ,## arg);              \
        } while (0)
 
 #undef info
 #define info(format, arg...)                                                   \
        do {                                                                    \
-               log_message(LOG_INFO ,"%s: " format ,__FILE__ ,## arg);         \
+               log_message(LOG_INFO ,"%s: " format ,__FUNCTION__ ,## arg);             \
        } while (0)
 
 #ifdef DEBUG