summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-28 16:06:04 +0100
committerJelmer Vernooij <jelmer@ganieda.vernstok.nl>2009-12-29 16:26:20 +0100
commit027f6ada63b34b5277fa73e5ffa6e436041d9ffb (patch)
tree896b8db06f97bf752a36ec98a1861329320acbc2
parent732a7630e9db2578c3a46d0836aaf602e1d5c604 (diff)
downloadsamba-027f6ada63b34b5277fa73e5ffa6e436041d9ffb.tar.gz
samba-027f6ada63b34b5277fa73e5ffa6e436041d9ffb.tar.bz2
samba-027f6ada63b34b5277fa73e5ffa6e436041d9ffb.zip
s4/net: Use d_printf consistently when reporting errors.
-rw-r--r--source4/utils/net/net.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 31bade32a5..9725402c7f 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -113,7 +113,7 @@ static PyObject *py_commands(void)
}
if (!PyDict_Check(py_cmds)) {
- fprintf(stderr, "Python net commands is not a dictionary\n");
+ d_printf("Python net commands is not a dictionary\n");
return NULL;
}
@@ -240,7 +240,7 @@ static int net_help_python(void)
char *name, *desc;
PyObject *py_desc;
if (!PyString_Check(key)) {
- fprintf(stderr, "Command name not a string\n");
+ d_printf("Command name not a string\n");
return 1;
}
name = PyString_AsString(key);
@@ -250,7 +250,8 @@ static int net_help_python(void)
return 1;
}
if (!PyString_Check(py_desc)) {
- fprintf(stderr, "Command description for %s not a string\n", name);
+ d_printf("Command description for %s not a string\n",
+ name);
return 1;
}
desc = PyString_AsString(py_desc);