~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-updates

« back to all changes in this revision

Viewing changes to src/include/utils/elog.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614095329-kerawur7tb6p8s71
Tags: 9.1~beta2-1
* New upstream beta release.
* Drop 03-cmsgcred-size.patch, fixed upstream.
* debian/postgresql-9.1.install: Install new pg_basebackup translations.
* debian/control: Fix the server-dev dependency to p-common to also work for
  backports.
* debian/watch: Fix for beta versions.
* debian/copyright: Add pointers to GPL and Artistic licenses for the Perl
  terms.
* debian/postgresql-9.1.preinst: Fail the package upgrade early when
  upgrading from beta-1, as the DB format changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
errmsg(const char *fmt,...)
125
125
/* This extension allows gcc to check the format string for consistency with
126
126
   the supplied arguments. */
127
 
__attribute__((format(printf, 1, 2)));
 
127
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
128
128
 
129
129
extern int
130
130
errmsg_internal(const char *fmt,...)
131
131
/* This extension allows gcc to check the format string for consistency with
132
132
   the supplied arguments. */
133
 
__attribute__((format(printf, 1, 2)));
 
133
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
134
134
 
135
135
extern int
136
136
errmsg_plural(const char *fmt_singular, const char *fmt_plural,
137
137
                          unsigned long n,...)
138
138
/* This extension allows gcc to check the format string for consistency with
139
139
   the supplied arguments. */
140
 
__attribute__((format(printf, 1, 4)))
141
 
__attribute__((format(printf, 2, 4)));
 
140
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 4)))
 
141
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 4)));
142
142
 
143
143
extern int
144
144
errdetail(const char *fmt,...)
145
145
/* This extension allows gcc to check the format string for consistency with
146
146
   the supplied arguments. */
147
 
__attribute__((format(printf, 1, 2)));
 
147
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
148
148
 
149
149
extern int
150
150
errdetail_log(const char *fmt,...)
151
151
/* This extension allows gcc to check the format string for consistency with
152
152
   the supplied arguments. */
153
 
__attribute__((format(printf, 1, 2)));
 
153
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
154
154
 
155
155
extern int
156
156
errdetail_plural(const char *fmt_singular, const char *fmt_plural,
157
157
                                 unsigned long n,...)
158
158
/* This extension allows gcc to check the format string for consistency with
159
159
   the supplied arguments. */
160
 
__attribute__((format(printf, 1, 4)))
161
 
__attribute__((format(printf, 2, 4)));
 
160
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 4)))
 
161
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 4)));
162
162
 
163
163
extern int
164
164
errhint(const char *fmt,...)
165
165
/* This extension allows gcc to check the format string for consistency with
166
166
   the supplied arguments. */
167
 
__attribute__((format(printf, 1, 2)));
 
167
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
168
168
 
169
169
extern int
170
170
errcontext(const char *fmt,...)
171
171
/* This extension allows gcc to check the format string for consistency with
172
172
   the supplied arguments. */
173
 
__attribute__((format(printf, 1, 2)));
 
173
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
174
174
 
175
175
extern int      errhidestmt(bool hide_stmt);
176
176
 
197
197
elog_finish(int elevel, const char *fmt,...)
198
198
/* This extension allows gcc to check the format string for consistency with
199
199
   the supplied arguments. */
200
 
__attribute__((format(printf, 2, 3)));
 
200
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
201
201
 
202
202
 
203
203
/* Support for constructing error strings separately from ereport() calls */
207
207
format_elog_string(const char *fmt,...)
208
208
/* This extension allows gcc to check the format string for consistency with
209
209
   the supplied arguments. */
210
 
__attribute__((format(printf, 1, 2)));
 
210
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
211
211
 
212
212
 
213
213
/* Support for attaching context information to error reports */
366
366
write_stderr(const char *fmt,...)
367
367
/* This extension allows gcc to check the format string for consistency with
368
368
   the supplied arguments. */
369
 
__attribute__((format(printf, 1, 2)));
 
369
__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2)));
370
370
 
371
371
#endif   /* ELOG_H */