diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-01-06 13:54:21 -0800 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-01-24 07:59:02 -0800 |
commit | 5a6af13f9645865b21c144a5a46aed79f8d8f2e5 (patch) | |
tree | 5f0627e772aa1d05928c9f437211ed6ac6c42df3 /include/windows | |
parent | fa5b8c6724f3fdfd290c414ec194c8948e57e775 (diff) | |
download | openvswitch-5a6af13f9645865b21c144a5a46aed79f8d8f2e5.tar.gz |
syslog: Provide stub functions for openlog and syslog.
One option to implement openlog and syslog functionality in Windows
is to use windows event logger. But it looks like it involves changing
registry settings and in general looks complicated.
For the time being, do nothing for syslog. All the information needed for
debugging will be present through the 'file' option anyways.
We can start OVS daemons on Windows with "-vfile:info -vsyslog:off".
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows')
-rw-r--r-- | include/windows/syslog.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/windows/syslog.h b/include/windows/syslog.h index 4a2f38b6e..41267da1c 100644 --- a/include/windows/syslog.h +++ b/include/windows/syslog.h @@ -37,4 +37,15 @@ #define LOG_LOCAL6 (22<<3) /* reserved for local use */ #define LOG_LOCAL7 (23<<3) /* reserved for local use */ +static inline void +openlog(const char *ident OVS_UNUSED, int option OVS_UNUSED, + int facility OVS_UNUSED) +{ +} + +static inline void +syslog(int priority OVS_UNUSED, const char *format OVS_UNUSED, ...) +{ +} + #endif /* syslog.h */ |