X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=logging.h;h=e0dcb80305ecb08e081200801451b9f93096bdf2;hb=2321ba6fd89635f321ec08fa3803aa7e20aa76bf;hp=0126de99eb94b2dec6d88896a809272a1f07d6f7;hpb=bebbc31b90056f5b0eafb52fc965f0cc713f0d4f;p=elogind.git diff --git a/logging.h b/logging.h index 0126de99e..e0dcb8030 100644 --- a/logging.h +++ b/logging.h @@ -38,13 +38,13 @@ #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