Print informations during RDB checking. */
| 130 | |
| 131 | /* Print informations during RDB checking. */ |
| 132 | void rdbCheckInfo(const char *fmt, ...) { |
| 133 | char msg[1024]; |
| 134 | va_list ap; |
| 135 | |
| 136 | va_start(ap, fmt); |
| 137 | vsnprintf(msg, sizeof(msg), fmt, ap); |
| 138 | va_end(ap); |
| 139 | |
| 140 | printf("[offset %llu] %s\n", |
| 141 | (unsigned long long) (rdbstate.rio ? |
| 142 | rdbstate.rio->processed_bytes : 0), msg); |
| 143 | } |
| 144 | |
| 145 | /* Used inside rdb.c in order to log specific errors happening inside |
| 146 | * the RDB loading internals. */ |
no outgoing calls
no test coverage detected