summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-11 18:53:23 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-11 18:53:23 +0000
commit52b0efec1aa1ec0d6ea40c2874b57082af8d39ca (patch)
tree9bc4917e4b428a529466287792707f6b03d5ac82 /source3
parent624a4fc009ce89a5cce77996606c30fbc6ec35fe (diff)
downloadsamba-52b0efec1aa1ec0d6ea40c2874b57082af8d39ca.tar.gz
samba-52b0efec1aa1ec0d6ea40c2874b57082af8d39ca.tar.bz2
samba-52b0efec1aa1ec0d6ea40c2874b57082af8d39ca.zip
More improvement of DEBUG output
(This used to be commit 21530f06b2b89d159657646fe15e16a3fcfdb668)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_mysql.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c
index b1b6646638..319bad7da2 100644
--- a/source3/passdb/pdb_mysql.c
+++ b/source3/passdb/pdb_mysql.c
@@ -351,13 +351,14 @@ static NTSTATUS mysqlsam_setsampwent(struct pdb_methods *methods, BOOL update)
CONFIG_UNKNOWN_6_DEFAULT),
config_value(data, "table", CONFIG_TABLE_DEFAULT)
);
+ DEBUG(5, ("Executing query %s\n", query));
ret = mysql_query(data->handle, query);
SAFE_FREE(query);
if (ret) {
DEBUG(0,
- ("Error executing MySQL query %s: %s\n", query, mysql_error(data->handle)));
+ ("Error executing MySQL query %s\n", mysql_error(data->handle)));
return NT_STATUS_UNSUCCESSFUL;
}
@@ -518,6 +519,8 @@ static NTSTATUS mysqlsam_select_by_field(struct pdb_methods * methods, SAM_ACCOU
esc_sname);
SAFE_FREE(esc_sname);
+
+ DEBUG(5, ("Executing query %s\n", query));
mysql_ret = mysql_query(data->handle, query);
@@ -525,7 +528,7 @@ static NTSTATUS mysqlsam_select_by_field(struct pdb_methods * methods, SAM_ACCOU
if (mysql_ret) {
DEBUG(0,
- ("Error while executing MySQL query %s: %s\n", query,
+ ("Error while executing MySQL query %s\n",
mysql_error(data->handle)));
return NT_STATUS_UNSUCCESSFUL;
}