* Special values printer for tablearg-aware opcodes. */
| 499 | * Special values printer for tablearg-aware opcodes. |
| 500 | */ |
| 501 | void |
| 502 | bprint_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 |
no test coverage detected