diff options
| author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2006-07-20 09:47:15 +0000 |
|---|---|---|
| committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2006-07-20 09:47:15 +0000 |
| commit | a68654e6474b398bd78cce6a2fde7b8adf647f20 (patch) | |
| tree | c8371fe3477ddf2f15442d57a8bae1a3c84d6e64 /usr.sbin/moused | |
| parent | 347a5ee76c8dd850e7dd472b08337f2869a6a81a (diff) | |
Notes
Diffstat (limited to 'usr.sbin/moused')
| -rw-r--r-- | usr.sbin/moused/moused.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index e1be3b25bbce..49f0ee7505c2 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -107,26 +107,26 @@ __FBSDID("$FreeBSD$"); #define ID_MODEL 8 #define ID_ALL (ID_PORT | ID_IF | ID_TYPE | ID_MODEL) -#define debug(fmt, args...) do { \ +#define debug(...) do { \ if (debug && nodaemon) \ - warnx(fmt, ##args); \ + warnx(__VA_ARGS__); \ } while (0) -#define logerr(e, fmt, args...) do { \ - log_or_warn(LOG_DAEMON | LOG_ERR, errno, fmt, ##args); \ +#define logerr(e, ...) do { \ + log_or_warn(LOG_DAEMON | LOG_ERR, errno, __VA_ARGS__); \ exit(e); \ } while (0) -#define logerrx(e, fmt, args...) do { \ - log_or_warn(LOG_DAEMON | LOG_ERR, 0, fmt, ##args); \ +#define logerrx(e, ...) do { \ + log_or_warn(LOG_DAEMON | LOG_ERR, 0, __VA_ARGS__); \ exit(e); \ } while (0) -#define logwarn(fmt, args...) \ - log_or_warn(LOG_DAEMON | LOG_WARNING, errno, fmt, ##args) +#define logwarn(...) \ + log_or_warn(LOG_DAEMON | LOG_WARNING, errno, __VA_ARGS__) -#define logwarnx(fmt, args...) \ - log_or_warn(LOG_DAEMON | LOG_WARNING, 0, fmt, ##args) +#define logwarnx(...) \ + log_or_warn(LOG_DAEMON | LOG_WARNING, 0, __VA_ARGS__) /* structures */ |
