Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: gconf: remove debug code

This is not so useful. If necessary, you can insert printf() or
whatever during debugging.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -48
+1 -48
scripts/kconfig/gconf.c
··· 18 18 #include <unistd.h> 19 19 #include <time.h> 20 20 21 - //#define DEBUG 22 - 23 21 enum { 24 22 SINGLE_VIEW, SPLIT_VIEW, FULL_VIEW 25 23 }; ··· 68 70 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row); 69 71 static gchar **fill_row(struct menu *menu); 70 72 static void conf_changed(void); 71 - 72 - /* Helping/Debugging Functions */ 73 - #ifdef DEBUG 74 - static const char *dbg_sym_flags(int val) 75 - { 76 - static char buf[256]; 77 - 78 - bzero(buf, 256); 79 - 80 - if (val & SYMBOL_CONST) 81 - strcat(buf, "const/"); 82 - if (val & SYMBOL_CHECK) 83 - strcat(buf, "check/"); 84 - if (val & SYMBOL_CHOICEVAL) 85 - strcat(buf, "choiceval/"); 86 - if (val & SYMBOL_VALID) 87 - strcat(buf, "valid/"); 88 - if (val & SYMBOL_WRITE) 89 - strcat(buf, "write/"); 90 - if (val & SYMBOL_CHANGED) 91 - strcat(buf, "changed/"); 92 - 93 - buf[strlen(buf) - 1] = '\0'; 94 - 95 - return buf; 96 - } 97 - #endif 98 73 99 74 static void replace_button_icon(GladeXML *xml, GdkDrawable *window, 100 75 GtkStyle *style, gchar *btn_name, gchar **xpm) ··· 1233 1262 else 1234 1263 menu2 = NULL; // force adding of a first child 1235 1264 1236 - #ifdef DEBUG 1237 - printf("%*c%s | %s\n", indent, ' ', 1238 - menu1 ? menu_get_prompt(menu1) : "nil", 1239 - menu2 ? menu_get_prompt(menu2) : "nil"); 1240 - #endif 1241 - 1242 1265 if ((opt_mode == OPT_NORMAL && !menu_is_visible(child1)) || 1243 1266 (opt_mode == OPT_PROMPT && !menu_has_prompt(child1)) || 1244 1267 (opt_mode == OPT_ALL && !menu_get_prompt(child1))) { ··· 1319 1354 (opt_mode == OPT_PROMPT && menu_has_prompt(child)) || 1320 1355 (opt_mode == OPT_ALL && menu_get_prompt(child))) 1321 1356 place_node(child, fill_row(child)); 1322 - #ifdef DEBUG 1323 - printf("%*c%s: ", indent, ' ', menu_get_prompt(child)); 1324 - printf("%s", child->flags & MENU_ROOT ? "rootmenu | " : ""); 1325 - printf("%s", prop_get_type_name(ptype)); 1326 - printf(" | "); 1327 - if (sym) { 1328 - printf("%s", sym_type_name(sym->type)); 1329 - printf(" | "); 1330 - printf("%s", dbg_sym_flags(sym->flags)); 1331 - printf("\n"); 1332 - } else 1333 - printf("\n"); 1334 - #endif 1357 + 1335 1358 if ((view_mode != FULL_VIEW) && (ptype == P_MENU) 1336 1359 && (tree == tree2)) 1337 1360 continue;