MCPcopy Create free account
hub / github.com/coreboot/coreboot / dbg_sym_flags

Function dbg_sym_flags

util/kconfig/gconf.c:76–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74/* Helping/Debugging Functions */
75#ifdef DEBUG
76static const char *dbg_sym_flags(int val)
77{
78 static char buf[256];
79
80 bzero(buf, 256);
81
82 if (val & SYMBOL_CONST)
83 strcat(buf, "const/");
84 if (val & SYMBOL_CHECK)
85 strcat(buf, "check/");
86 if (val & SYMBOL_CHOICE)
87 strcat(buf, "choice/");
88 if (val & SYMBOL_CHOICEVAL)
89 strcat(buf, "choiceval/");
90 if (val & SYMBOL_VALID)
91 strcat(buf, "valid/");
92 if (val & SYMBOL_OPTIONAL)
93 strcat(buf, "optional/");
94 if (val & SYMBOL_WRITE)
95 strcat(buf, "write/");
96 if (val & SYMBOL_CHANGED)
97 strcat(buf, "changed/");
98 if (val & SYMBOL_NO_WRITE)
99 strcat(buf, "no_write/");
100
101 buf[strlen(buf) - 1] = '\0';
102
103 return buf;
104}
105#endif
106
107static void replace_button_icon(GladeXML *xml, GdkDrawable *window,

Callers 1

display_treeFunction · 0.85

Calls 2

strcatFunction · 0.85
strlenFunction · 0.85

Tested by

no test coverage detected