summaryrefslogtreecommitdiff
path: root/src/message.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-03-04 15:44:10 +0900
committerRyo Nakamura <upa@haeena.net>2023-03-04 15:44:10 +0900
commitdf2f922b0d73f9605965cd37683fb22b7c12b2a3 (patch)
tree3552dd0dedb0aec916867c3b92b7262bb820cae4 /src/message.h
parent1e57e8fb2fcbf64ad518a5f6aa763725cbb43244 (diff)
remove pprint, use message (mpr_*) instead.
ToDo: main should use pipe to receive messages from libmscp.
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/message.h b/src/message.h
index bafbf5c..6bd73c7 100644
--- a/src/message.h
+++ b/src/message.h
@@ -9,16 +9,16 @@
void mprint_set_severity(int severity);
void mprint(int fd, int severity, const char *fmt, ...);
-#define mpr_err(m, fmt, ...) \
- mprint(m->msg_fd, MSCP_SEVERITY_ERR, fmt, ##__VA_ARGS__)
-#define mpr_warn(m, fmt, ...) \
- mprint(m->msg_fd, MSCP_SEVERITY_WARN, fmt, ##__VA_ARGS__)
-#define mpr_notice(m, fmt, ...) \
- mprint(m->msg_fd, MSCP_SEVERITY_NOTICE, fmt, ##__VA_ARGS__)
-#define mpr_info(m, fmt, ...) \
- mprint(m->msg_fd, MSCP_SEVERITY_INFO, fmt, ##__VA_ARGS__)
-#define mpr_debug(m, fmt, ...) \
- mprint(m->msg_fd, MSCP_SEVERITY_DEBUG, fmt, ##__VA_ARGS__)
+#define mpr_err(fd, fmt, ...) \
+ mprint(fd, MSCP_SEVERITY_ERR, fmt, ##__VA_ARGS__)
+#define mpr_warn(fd, fmt, ...) \
+ mprint(fd, MSCP_SEVERITY_WARN, fmt, ##__VA_ARGS__)
+#define mpr_notice(fd, fmt, ...) \
+ mprint(fd, MSCP_SEVERITY_NOTICE, fmt, ##__VA_ARGS__)
+#define mpr_info(fd, fmt, ...) \
+ mprint(fd, MSCP_SEVERITY_INFO, fmt, ##__VA_ARGS__)
+#define mpr_debug(fd, fmt, ...) \
+ mprint(fd, MSCP_SEVERITY_DEBUG, fmt, ##__VA_ARGS__)
/* error message buffer */