summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-10 16:30:23 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-10 16:30:23 +0000
commitaf6902f5bfe4c74e397aba362538f08c7d2a126e (patch)
treead60712de81ded314ddf9ef3d8b5dc43a541ed48 /source3/passdb
parent289fe8557cf3300be42b30d44c88426fb16c0c1a (diff)
downloadsamba-af6902f5bfe4c74e397aba362538f08c7d2a126e.tar.gz
samba-af6902f5bfe4c74e397aba362538f08c7d2a126e.tar.bz2
samba-af6902f5bfe4c74e397aba362538f08c7d2a126e.zip
Print the number of returned rows, not the number of fields
(This used to be commit cf74ddc2fcb1e7286441edb432d8906bb722a3d4)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_mysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c
index 0df630d1ee..66429cb4d8 100644
--- a/source3/passdb/pdb_mysql.c
+++ b/source3/passdb/pdb_mysql.c
@@ -370,8 +370,8 @@ static NTSTATUS mysqlsam_setsampwent(struct pdb_methods *methods, BOOL update)
}
DEBUG(5,
- ("mysqlsam_setsampwent succeeded(%d results)!\n",
- mysql_num_fields(data->pwent)));
+ ("mysqlsam_setsampwent succeeded(%lu results)!\n",
+ mysql_num_rows(data->pwent)));
return NT_STATUS_OK;
}