MCPcopy Index your code
hub / github.com/F-Stack/f-stack / bprint_uint_arg

Function bprint_uint_arg

tools/ipfw/ipfw2.c:501–511  ·  view source on GitHub ↗

* Special values printer for tablearg-aware opcodes. */

Source from the content-addressed store, hash-verified

499 * Special values printer for tablearg-aware opcodes.
500 */
501void
502bprint_uint_arg(struct buf_pr *bp, const char *str, uint32_t arg)
503{
504
505 if (str != NULL)
506 bprintf(bp, "%s", str);
507 if (arg == IP_FW_TARG)
508 bprintf(bp, "tablearg");
509 else
510 bprintf(bp, "%u", arg);
511}
512
513/*
514 * Helper routine to print a possibly unaligned uint64_t on

Callers 3

print_limit_maskFunction · 0.85
print_instructionFunction · 0.85
print_action_instructionFunction · 0.85

Calls 1

bprintfFunction · 0.85

Tested by

no test coverage detected