Are we shipping SDL compiled with DEBUG on?
Manuel A. Fernandez Montecelo
manuel.montezelo at gmail.com
Sat Jun 30 16:30:37 UTC 2012
Hello Miriam,
2012/6/30 Miriam Ruiz <miriam at debian.org>:
> Hi,
>
> By running some tests with joysticks in pygame [1], I found out that
> I'm getting a lot of debug messages coming from SDL when I read input
> from joysticks. It seems to come from SDL being compiled with DEBUG on
> [2]. I don't know if this is safe or if it can be problematic. Is it
> being done on purpose? Is there a way to deactivate those messages in
> runtime?
>
> Greetings and lots of thanks,
> Miry
>
>
> [1] http://iamtherockstar.com/archive/making-hid-devices-easier-using-pygame-joysticks/
> [2] http://stackoverflow.com/questions/2125702/how-to-suppress-console-output-in-python
According to one reply in your [2] linking to [3] containing the lines
below, this is actually a C file from PyGame (presumably binding
SDL<->Upper layers in Python for PyGame). I don't know anything about
PyGame, though.
#ifdef DEBUG
printf("SDL_JoystickGetHat value:%d:\n", value);
#endif
I verified libsdl1.2's debian/rules and logs, and DEBUG doesn't seem
to be enabled.
Can you please confirm if I am right and the problem is elsewhere, or
if you have further concerns about SDL?
[3] http://svn.seul.org/viewcvs/viewvc.cgi/trunk/src/joystick.c?view=markup&revision=2652&root=PyGame
Cheers.
More information about the Pkg-sdl-maintainers
mailing list