diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-11-11 18:54:13 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-11-11 18:54:13 +0000 |
commit | 375da9787e66cb23a2f03780521fbae9ab8c278f (patch) | |
tree | 7ddeb23ee3c15576333c5af4c7d2f2cfd622aa3c /source3 | |
parent | 29edab7547da2d56568238c6a6a33f77a5a9c188 (diff) | |
download | samba-375da9787e66cb23a2f03780521fbae9ab8c278f.tar.gz samba-375da9787e66cb23a2f03780521fbae9ab8c278f.tar.bz2 samba-375da9787e66cb23a2f03780521fbae9ab8c278f.zip |
Improve DEBUG output somewhat more
(This used to be commit 2cc36ce0ee8383aa8a20a8dc5a3218693dc46817)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_mysql.c | 7 |
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; } |