authorSergey Poznyakoff <>2013-10-18 20:47:49 (GMT)
committer Sergey Poznyakoff <>2013-10-18 20:57:30 (GMT)
commit01022a35bfed28d33de9b8930068db41e487bb15 (patch) (side-by-side diff)
parent1a11eccc579d75f4db62fce3e2ab8b709c60da51 (diff)
Minor improvement.
* src/err.h (error,packerror): Mark as printflike. * doc/binlogsel.1: Update.
Diffstat (more/less context) (ignore whitespace changes)
2 files changed, 13 insertions, 3 deletions
diff --git a/doc/binlogsel.1 b/doc/binlogsel.1
index ec7bd24..eb7bc3a 100644
--- a/doc/binlogsel.1
+++ b/doc/binlogsel.1
@@ -13,7 +13,7 @@
.\" You should have received a copy of the GNU General Public License
.\" along with vmod-binlog. If not, see <>.
-.TH BINLOGSEL 1 "October 17, 2013" "BINLOGSEL" "User Reference"
+.TH BINLOGSEL 1 "October 18, 2013" "BINLOGSEL" "User Reference"
binlogsel \- select records from binary logs
@@ -178,6 +178,14 @@ Show program version and exit.
.B \-v
Print information about each file before dumping it.
+Symbols exported from a loadable module must begin with
+\fImodname\fB_LTX_\fR, where \fImodname\fR stands for the name of the
+module without suffix (\\fR, \\fR, etc.). In the discussion
+below, the symbols
+.B binlogsel
+looks for are listed without this prefix. Thus, for example, if the
+module name is \\fR, the name of the module initialization
+function must be \fBstats_LTX_init\fR.
.BI "void init(char *" param ", void (*" addfn ")(const char *, const char *, const char *));"
diff --git a/src/err.h b/src/err.h
index aab01be..a5c1b68 100644
--- a/src/err.h
+++ b/src/err.h
@@ -17,6 +17,8 @@
extern const char *progname;
void setprogname(const char *);
-void error(const char *fmt, ...);
-void packerror(const char *fmt, ...);
+void error(const char *fmt, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+void packerror(const char *fmt, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
void version(void);

Return to:

Send suggestions and report system problems to the System administrator.