summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/common/gendb.c2
-rw-r--r--source4/rpc_server/samr/samdb.c4
-rw-r--r--source4/rpc_server/spoolss/spoolssdb.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/common/gendb.c b/source4/rpc_server/common/gendb.c
index 76e9f72bb1..d20aef5ff8 100644
--- a/source4/rpc_server/common/gendb.c
+++ b/source4/rpc_server/common/gendb.c
@@ -32,7 +32,7 @@ int gendb_search_v(struct ldb_context *ldb,
struct ldb_message ***res,
const char * const *attrs,
const char *format,
- va_list ap)
+ va_list ap) _PRINTF_ATTRIBUTE(6,0)
{
char *expr = NULL;
int count;
diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c
index 7be75258af..d23118f1f0 100644
--- a/source4/rpc_server/samr/samdb.c
+++ b/source4/rpc_server/samr/samdb.c
@@ -30,7 +30,7 @@ struct samdb_context {
/*
this is used to catch debug messages from ldb
*/
-void samdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap)
+void samdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(3,0)
{
char *s = NULL;
if (DEBUGLEVEL < 4 && level > LDB_DEBUG_WARNING) {
@@ -128,7 +128,7 @@ const char *samdb_search_string_v(void *ctx,
TALLOC_CTX *mem_ctx,
const char *basedn,
const char *attr_name,
- const char *format, va_list ap)
+ const char *format, va_list ap) _PRINTF_ATTRIBUTE(5,0)
{
struct samdb_context *sam_ctx = ctx;
int count;
diff --git a/source4/rpc_server/spoolss/spoolssdb.c b/source4/rpc_server/spoolss/spoolssdb.c
index 94f91b4f16..a19ad14981 100644
--- a/source4/rpc_server/spoolss/spoolssdb.c
+++ b/source4/rpc_server/spoolss/spoolssdb.c
@@ -30,7 +30,7 @@ struct spoolssdb_context {
/*
this is used to catch debug messages from ldb
*/
-void spoolssdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap)
+void spoolssdb_debug(void *context, enum ldb_debug_level level, const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(3, 0)
{
char *s = NULL;
if (DEBUGLEVEL < 4 && level > LDB_DEBUG_WARNING) {