diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-02 08:19:41 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:20 -0700 |
commit | 95a6f4c8acafe7031087667aa556a50a6a091c93 (patch) | |
tree | 8f7775e25d9315f20c0cc44cac362976e96627d2 /libsysfs | |
parent | 3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (diff) |
[PATCH] rework the logging code so that each program logs with the proper name in the syslog.
Diffstat (limited to 'libsysfs')
-rw-r--r-- | libsysfs/sysfs.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libsysfs/sysfs.h b/libsysfs/sysfs.h index 4ea4919351..49c9285bc3 100644 --- a/libsysfs/sysfs.h +++ b/libsysfs/sysfs.h @@ -34,7 +34,7 @@ /* Debugging */ #ifdef DEBUG -#include <syslog.h> +#include "../logging.h" #define dprintf(format, arg...) \ do { \ log_message (LOG_DEBUG , "%s: " format , __FUNCTION__ , ## arg); \ @@ -43,8 +43,4 @@ #define dprintf(format, arg...) do { } while (0) #endif -extern int log_message (int level, const char *format, ...) - __attribute__ ((format (printf, 2, 3))); - - #endif /* _SYSFS_H_ */ |