Skip to content

Commit 507a485

Browse files
committed
Print verbose messages to stderr. Fixes #1036752.
1 parent fec1ce0 commit 507a485

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/dynload_shlib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
113113
#endif
114114

115115
if (Py_VerboseFlag)
116-
printf("dlopen(\"%s\", %x);\n", pathname, dlopenflags);
116+
PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname,
117+
dlopenflags);
117118

118119
#ifdef __VMS
119120
/* VMS currently don't allow a pathname, use a logical name instead */

0 commit comments

Comments
 (0)