X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=logging.h;h=e0dcb80305ecb08e081200801451b9f93096bdf2;hp=904355cb2cf4fa4f590f3bcd7f950069ca95cefe;hb=cf7cad9dc90c15ac13baeae85db5e0e25b59ed0e;hpb=6b493a20e1dbf90a4e54d3be37027fa906220c31 diff --git a/logging.h b/logging.h index 904355cb2..e0dcb8030 100644 --- a/logging.h +++ b/logging.h @@ -38,13 +38,13 @@ #undef err #define err(format, arg...) \ do { \ - log_message(LOG_INFO ,"%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