0005-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From: Daniel Veillard <veillard@redhat.com>
  2. Date: Wed, 30 Jan 2013 16:31:37 +0000
  3. Subject: Fix a couple of places where (f)printf parameters were broken
  4. As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
  5. ---
  6. python/libxslt.c | 10 +++++-----
  7. xsltproc/xsltproc.c | 2 +-
  8. 2 files changed, 6 insertions(+), 6 deletions(-)
  9. diff --git a/python/libxslt.c b/python/libxslt.c
  10. index 6a4f1c3..8dd6c78 100644
  11. --- a/python/libxslt.c
  12. +++ b/python/libxslt.c
  13. @@ -356,15 +356,15 @@ libxslt_xsltRegisterExtModuleElement(PyObject *self ATTRIBUTE_UNUSED,
  14. PyObject *pyobj_element_f;
  15. PyObject *pyobj_precomp_f;
  16. -#ifdef DEBUG_EXTENSIONS
  17. - printf("libxslt_xsltRegisterExtModuleElement called\n",
  18. - name, ns_uri);
  19. -#endif
  20. -
  21. if (!PyArg_ParseTuple(args, (char *)"szOO:registerExtModuleElement",
  22. &name, &ns_uri, &pyobj_precomp_f, &pyobj_element_f))
  23. return(NULL);
  24. +#ifdef DEBUG_EXTENSIONS
  25. + printf("libxslt_xsltRegisterExtModuleElement called: %s %s\n",
  26. + name, ns_uri);
  27. +#endif
  28. +
  29. if ((name == NULL) || (pyobj_element_f == NULL) || (pyobj_precomp_f == NULL)) {
  30. py_retval = libxml_intWrap(-1);
  31. return(py_retval);
  32. diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
  33. index 9ec4b76..33beddf 100644
  34. --- a/xsltproc/xsltproc.c
  35. +++ b/xsltproc/xsltproc.c
  36. @@ -319,7 +319,7 @@ static void endTimer(char *format, ...)
  37. va_start(ap, format);
  38. vfprintf(stderr,format,ap);
  39. va_end(ap);
  40. - fprintf(stderr, " was not timed\n", msec);
  41. + fprintf(stderr, " was not timed\n");
  42. #else
  43. /* We don't have gettimeofday, time or stdarg.h, what crazy world is
  44. * this ?!