summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-13 23:07:10 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:35 +1000
commitce2004d631bb7eb0aa838f07ef48465a6f199d22 (patch)
tree4c9e173d8cf7f6c45cc32b94491c52ad58611fe4
parent041c699f3ae10d189405b93977e3143813fb4525 (diff)
downloadsamba-ce2004d631bb7eb0aa838f07ef48465a6f199d22.tar.gz
samba-ce2004d631bb7eb0aa838f07ef48465a6f199d22.tar.bz2
samba-ce2004d631bb7eb0aa838f07ef48465a6f199d22.zip
s4: fixed some printf format errors
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c2
-rw-r--r--source4/lib/registry/ldb.c2
-rw-r--r--source4/lib/registry/util.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 5815e9158d..45ef4d9961 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -1197,7 +1197,7 @@ static int replmd_update_rpmd(struct ldb_module *module,
if (*seq_num <= db_seq) {
DEBUG(0,(__location__ ": changereplmetada control provided but max(local_usn)"\
" is less or equal to uSNChanged (max = %lld uSNChanged = %lld)\n",
- *seq_num, db_seq));
+ (long long)*seq_num, (long long)db_seq));
return LDB_ERR_OPERATIONS_ERROR;
}
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index 91c6763902..09f39f6f30 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -201,7 +201,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
char *conv_str;
conv_str = talloc_asprintf(msg, "0x%16.16llx",
- BVAL(data.data, 0));
+ (unsigned long long)BVAL(data.data, 0));
if (conv_str == NULL) {
talloc_free(msg);
return NULL;
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c
index fce420e625..5e7741aef5 100644
--- a/source4/lib/registry/util.c
+++ b/source4/lib/registry/util.c
@@ -45,7 +45,7 @@ _PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type,
case REG_QWORD:
SMB_ASSERT(data.length == sizeof(uint64_t));
ret = talloc_asprintf(mem_ctx, "0x%16.16llx",
- BVAL(data.data, 0));
+ (unsigned long long)BVAL(data.data, 0));
break;
case REG_BINARY:
ret = data_blob_hex_string_upper(mem_ctx, &data);