MCPcopy Create free account
hub / github.com/F-Stack/f-stack / add_cap

Function add_cap

freebsd/arm/arm/identcpu-v6.c:255–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static void
256add_cap(char *cap)
257{
258 int len;
259
260 len = strlen(cap);
261
262 if ((hw_buf_idx + len + 2) >= 79) {
263 printf("%s,\n", hw_buf);
264 hw_buf_idx = 0;
265 hw_buf_newline = true;
266 }
267 if (hw_buf_newline)
268 hw_buf_idx += sprintf(hw_buf + hw_buf_idx, " ");
269 else
270 hw_buf_idx += sprintf(hw_buf + hw_buf_idx, ", ");
271 hw_buf_newline = false;
272
273 hw_buf_idx += sprintf(hw_buf + hw_buf_idx, "%s", cap);
274}
275
276void
277identify_arm_cpu(void)

Callers 1

identify_arm_cpuFunction · 0.85

Calls 2

sprintfFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected