debug: remove duplicate information

master
Benno Schulenberg 2016-07-18 12:44:34 +02:00
parent bf091be778
commit 73a07215cc
1 changed files with 5 additions and 4 deletions

View File

@ -1637,21 +1637,22 @@ const sc *get_shortcut(int *kbinput)
sc *s;
#ifdef DEBUG
fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ", *kbinput, meta_key ? "TRUE" : "FALSE");
fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ",
*kbinput, meta_key ? "TRUE" : "FALSE");
#endif
for (s = sclist; s != NULL; s = s->next) {
if ((s->menus & currmenu) && *kbinput == s->seq
&& meta_key == (s->type == META)) {
#ifdef DEBUG
fprintf (stderr, "matched seq \"%s\", and btw meta was %d (menu is %x from %x)\n",
s->keystr, meta_key, currmenu, s->menus);
fprintf (stderr, "matched seq '%s' (menu is %x from %x)\n",
s->keystr, currmenu, s->menus);
#endif
return s;
}
}
#ifdef DEBUG
fprintf (stderr, "matched nothing, btw meta was %d\n", meta_key);
fprintf (stderr, "matched nothing\n");
#endif
return NULL;