Thread-local int→string for log key-value pairs */
| 87 | |
| 88 | /* Thread-local int→string for log key-value pairs */ |
| 89 | static const char *pkgmap_itoa(int val) { |
| 90 | static _Thread_local char buf[PKGMAP_ITOA_BUF]; |
| 91 | snprintf(buf, sizeof(buf), "%d", val); |
| 92 | return buf; |
| 93 | } |
| 94 | |
| 95 | /* Check if src at position p starts with literal str of known length. */ |
| 96 | static bool at_prefix(const char *p, const char *end, const char *prefix, int prefix_len) { |
no outgoing calls
no test coverage detected