removing debugging statements or migrating them over to the build time debugging code

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@107 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-08-21 02:32:43 +00:00
committed by virtuoussin13
parent b4fb916596
commit 941eee3fdc
3 changed files with 9 additions and 10 deletions

View File

@ -265,7 +265,6 @@ void LayoutManager::trayClick() {
void LayoutManager::trayMenu(QAction *menuItemAction) {
//if they clicked on a Layout name, load it!
//note that the other options are handled with their own special functions
printf("%s\n", qPrintable(menuItemAction->text()));
if (Popup->actions().indexOf(menuItemAction) > 1 && menuItemAction->text() != "Quit" &&
menuItemAction->text() != "Update lyaout list" &&
menuItemAction->text() != "Update joystick devices") {
@ -353,7 +352,7 @@ void LayoutManager::updateJoyDevs() {
read_struct.events = POLLIN;
char buf[10];
while(poll(&read_struct, 1, 5)!=0) {
printf("reading junk data\n");
DEBUG("reading junk data\n");
read(joydev, buf, 10);
}
joypad = new JoyPad( index, joydev );
@ -368,7 +367,7 @@ void LayoutManager::updateJoyDevs() {
}
else {
int errsv = errno;
printf("%s\n", strerror(errsv));
printf("error reading joypad dev device: %s\n", strerror(errsv));
}
}
//when it's all done, rebuild the popup menu so it displays the correct