system-config-printer/pysmbc-debug.patch
2008-07-08 14:59:17 +00:00

32 lines
984 B
Diff

diff -U0 pysmbc-1.0.4/ChangeLog.debug pysmbc-1.0.4/ChangeLog
--- pysmbc-1.0.4/ChangeLog.debug 2008-06-20 12:15:30.000000000 +0100
+++ pysmbc-1.0.4/ChangeLog 2008-07-08 15:39:43.000000000 +0100
@@ -0,0 +1,5 @@
+2008-06-24 Tim Waugh <twaugh@redhat.com>
+
+ * context.c (Context_init): Set the debug level during the Context
+ constructor.
+
diff -up pysmbc-1.0.4/context.c.debug pysmbc-1.0.4/context.c
--- pysmbc-1.0.4/context.c.debug 2008-06-20 12:14:17.000000000 +0100
+++ pysmbc-1.0.4/context.c 2008-07-08 15:39:43.000000000 +0100
@@ -100,7 +100,7 @@ static int
Context_init (Context *self, PyObject *args, PyObject *kwds)
{
PyObject *auth = NULL;
- int debug = 0;
+ int debug = -1;
unsigned int flags = 0;
SMBCCTX *ctx;
static char *kwlist[] =
@@ -149,6 +149,9 @@ Context_init (Context *self, PyObject *a
return -1;
}
+ if (debug != -1)
+ smbc_setDebug (ctx, debug);
+
self->context = ctx;
smbc_setOptionUserData (ctx, self);
if (auth)