From: Martin v. Löwis Date: Sun, 3 Oct 2004 08:51:35 +0000 (+0000) Subject: Print verbose messages to stderr. Fixes #1036752. X-Git-Tag: v2.4b1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=507a485984111874fe36302c4701be9861a1849c;p=python Print verbose messages to stderr. Fixes #1036752. --- diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 50851a876f..2b5a11a220 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -113,7 +113,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, #endif if (Py_VerboseFlag) - printf("dlopen(\"%s\", %x);\n", pathname, dlopenflags); + PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname, + dlopenflags); #ifdef __VMS /* VMS currently don't allow a pathname, use a logical name instead */