diff options
Diffstat (limited to 'lib/tdb2')
-rw-r--r-- | lib/tdb2/pytdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tdb2/pytdb.c b/lib/tdb2/pytdb.c index c760045508..c03f00d58c 100644 --- a/lib/tdb2/pytdb.c +++ b/lib/tdb2/pytdb.c @@ -74,10 +74,12 @@ static PyObject *PyString_FromTDB_DATA(TDB_DATA data) static void stderr_log(struct tdb_context *tdb, enum tdb_log_level level, + enum TDB_ERROR ecode, const char *message, void *data) { - fprintf(stderr, "%s:%s\n", tdb_name(tdb), message); + fprintf(stderr, "%s:%s:%s\n", + tdb_name(tdb), tdb_errorstr(ecode), message); } static PyObject *py_tdb_open(PyTypeObject *type, PyObject *args, PyObject *kwargs) |