* Print out result of unit test hash operation. */
| 104 | * Print out result of unit test hash operation. |
| 105 | */ |
| 106 | static void print_key_info(const char *msg, const struct flow_key *key, |
| 107 | int32_t pos) |
| 108 | { |
| 109 | const uint8_t *p = (const uint8_t *)key; |
| 110 | unsigned int i; |
| 111 | |
| 112 | rte_log(RTE_LOG_DEBUG, hash_logtype_test, "%s key:0x", msg); |
| 113 | for (i = 0; i < sizeof(struct flow_key); i++) |
| 114 | rte_log(RTE_LOG_DEBUG, hash_logtype_test, "%02X", p[i]); |
| 115 | rte_log(RTE_LOG_DEBUG, hash_logtype_test, " @ pos %d\n", pos); |
| 116 | } |
| 117 | |
| 118 | /* Keys used by unit test functions */ |
| 119 | static struct flow_key keys[5] = { { |
no test coverage detected